Hi Geeks,
Sharing something I have recently refreshed myself on with D365 for apps
Data export service (DES)
This is a standard OoB plugin form Microsoft to Sync data between Common data service and Azure SQL database. This process is commonly used for customers who want to use copy of CDS data to Azure SQL, Azure SQL being Datawarehouse and build reports on top of it, also migrate data further down the line after doing some transformations on the Azure SQL. This plugin allows only delta changes to Sync from Dynamics to Azure SQL, after initial sync.
Prerequisite:
We have two stages on this Setup.
Stage 1:
Manual setup
Or
Run Powershell script
Stage 2:
Create of export profile
FAQs
– error on creation of Export profile -> Give the CRM user the permissions on the Key vault as Get
– profile error on Creation of export profile -> Check the Secret value is having the right SQL connection string and resolve. Still issue arises, then drop the tables and profile schema in SQL and recreate
Format of parameters in powershell script:
Input:
$subscriptionId = ‘xxxx.xxxxx’
$keyvaultName = ‘Samplekey’
$secretName = ‘SecreteName’
$resourceGroupName = ‘sQLRG’
$location = ‘centralus’
$connectionString = ‘AzureSQLconnectionString’
$organizationIdList = ‘ContosoSalesOrg1_id, ContosoSalesOrg2_id‘
Output:
Secret Identifier = ‘https://<azureserver>.vault.azure.net/secrets/Secret-SS-CRM-082020/e0e112d2943344473a159bf2efddd46c1‘
Helpful links:
https://docs.microsoft.com/en-us/power-platform/admin/replicate-data-microsoft-azure-sql-database
https://www.powerobjects.com/blog/2019/05/07/data-export-service-installation-configuration/
Original Post https://mscrmsama.wordpress.com/2020/06/09/data-export-service-for-d365-cds-v9-1x-and-azure-sql/