Exercise - Connect to Dynamics 365 Customer Insights

Completed

In this exercise, you sign up for Dynamics 365 Customer Insights trial and install Dynamics 365 Customer Insights - Data.

Set up Dynamics 365 Customer Insights trial

  1. Navigate Power BI https://app.powerbi.com/ and sign in.

  2. Using the same browser session, navigate to https://www.microsoft.com/dynamics-365/products/customer-insights.

  3. Select Try for free.

  4. Make sure the email is correct and then select Start free trial.

    Screenshot of Try Dynamics 365 Customer Insights free for 30 days page.

  5. Select Go to trial.

  6. Navigate to Power Platform admin center.

  7. Expand Resources and select Dynamics 365 apps.

    Screenshot of Dynamics 365 apps selected.

  8. Search for marketing and select Dynamics 365 Marketing Application Trial and then select the Manage button.

    Screenshot of Dynamics 365 Marketing Application trial page with Manage button selected.

  9. Select OK.

  10. On the Provisioning page, select the Trial tab and wait for the installation to be completed.

    Screenshot of the Provisioning page.

  11. In the Customer Insights - Data column, select Install.

    Screenshot with Install selected on the Customer Insights - Data column.

  12. From the Save output data to dropdown, select Customer Insights managed storage, and then select Install.

    Screenshot of the selection of Save output data to dropdown.

  13. Wait for the installation to be completed. You can refresh the page to see the installation progress.

  14. Hover over the green checkmark under the Customer Insights - Data, navigate to the link that appears.

    Screenshot of the Application installation page  with the link for Customer Insights - Data.

  15. Wait for the configuration to complete and stay on this page.

Configure permissions on storage

To allow Customer Insights - Data to connect to the ADLS Gen2 storage account, assign the Storage Blob Data Contributor role to the Dynamics 365 AI for Customer Insights service principal on the container. For instructions, see Connect to an Azure Data Lake Storage account by using a Microsoft Entra service principal.

In this section, you create Microsoft Entra service principal for Customer Insights and add the Storage Blob Data Contributor role to your storage.

  1. Ensure the data environment is created as mentioned in the Prerequisites.

  2. Open a new browser and navigate to Azure portal.

  3. You will first look for existing service principal. Select Microsoft Entra ID.

  4. Under Manage select Enterprise applications.

  5. Select the Application type filter, change the Value from Enterprise applications to Microsoft Applications and then select Apply.

    Screenshot of the application type filter.

  6. Search for Dynamics 365 AI for Customer Insights. If one already exists, skip to step #16 and if not continue to the next step.

  7. Select Home.

  8. Select Microsoft Entra ID.

  9. Locate and copy your Tenant ID and make note of this ID.

    Screenshot of locating and copying the Tenant ID.

  10. Select the Cloud Shell button.

    Screenshot of the selection to Cloud Shell button.

  11. Select your subscription and then select Apply.

    Screenshot of the Getting started page.

  12. If prompted, select PowerShell.

  13. Paste the following command to connect to your Azure AD and press Enter. Replace [Your Tenant ID] with the tenant ID you copied.

    Connect-AzureAD -Tenant "[Your Tenant ID]" -AzureEnvironmentName Azure
    

    Screenshot of the Azure Cloud Shell window.

  14. Paste the following command and ENTER. This command creates the service principal on the selected Azure subscription.

    New-AzureADServicePrincipal -AppId "0bfc4568-a4ba-4c58-bd3e-5d3e76bd7fff" -DisplayName "Dynamics 365 AI for Customer Insights"
    
  15. Close the Cloud Shell window.

  16. Select Home.

  17. Locate and open the storage account you created.

  18. Select Access Control (IAM).

  19. Select + Add and then select Add role assignment.

  20. Search for blob and select Storage Blob Data Contributor.

    Screenshot with the Storage Blob Data Contributor role selected.

  21. Select Next.

  22. From the Members tab, select the + Select members button.

  23. Search for Dynamics 365 ai and select Dynamics 365 AI for Customer Insights Application and then select the Select button.

    Screenshot of the selection to Dynamics 365 AI for Customer Insights Application.

  24. Search for your user name and select it.

  25. You should now have two members selected.

  26. Select Review + assign.

  27. Select Review + assign again and wait for role assignment to be added.

Configure the data source

In this section, you configure the data source for your Customer Insights - Data application to bring in data from the Delta tables.

  1. Go to the Customer Insights - Data application and select Data > Data sources.

    Screenshot of the Data sources.

  2. Select + Add a data source.

  3. Select Azure Data Lake Delta tables.

  4. Enter LakeSource for Data source name and provide the connection details to the Azure Data Lake Storage Gen2 storage account created in Prerequisites.

  5. Select Next.

    Screenshot of Azure Data Lake Delta tables.

  6. You should see a folder named all_entities. Open the folder.

    Screenshot of the root folder containing Delta tables.

  7. Select the Patient entity's to Include checkbox and then select the Required button.

  8. Select Id for Primary key and then select Close.

  9. Repeat the same steps for the following entity.

    • Goal

    • CorePlan

    • CorePlanCondition

    • Condition

  10. You should have five entities selected. Select Save.

    Screenshot of the selection of five entities.

  11. Wait for the refresh to complete.

    Screenshot of the status of Data sources.

Unify and configure relationships

After setting up your data source, you can unify the data. Data unification lets you unify once-disparate data sources into a single dataset that provides a unified view of your customers.

  1. In the left navigation pane, select Unify.

  2. Select Get started.

    Screenshot of the selection to Get started.

  3. Select + Get started again.

  4. Select the Patient table and columns, and then select Apply.

    Screenshot of the selection to Patient table.

  5. Select Next.

  6. Select Next.

  7. Select Next.

  8. Select Create customer profile.

  9. Select Unify and wait for the refresh to complete.

    Screenshot of the unify refresh status.

  10. Select Tables from the left navigation.

  11. Select the Relationships tab and then select + New relationship.

  12. Enter the Name as GoalToPatient.

  13. Select Goal as source Table, Many for Condition, and SubjectPatient for Source field.

  14. Select Patient as target Table, One for Condition, and Id for Source field.

  15. Select Save.

    Screenshot of the details of a new goal to patient relationship.

  16. Select + New relationship again.

  17. Enter CarePlanToGoal for Name.

  18. Select CarePlan as source Table, Many for Condition, and Goal for Source field.

  19. Select Goal as target Table, One for Condition, and Id for Source field.

  20. Select Save.

    Screenshot of the details of a new care plan to goal relationship.

  21. Select + New relationship again.

  22. Enter CarePlanConditionToCarePlan for Name.

  23. Select CarePlanCondition as source Table, Many for Condition, and CarePlanId for Source field.

  24. Select CarePlan as target Table, One for Condition, and Id for Source field.

  25. Select Save.

    Screenshot of the details of a new Care Plan Condition To Care Plan relationship.

  26. Select + New relationship again.

  27. Enter CarePlanConditionToCondition for Name.

  28. Select CarePlanCondition as source Table, Many for Condition, and ConditionId for Source field.

  29. Select Condition as target Table, One for Condition, and Id for Source field.

  30. Select Save.

    Screenshot of the details of a new Care Plan Condition To Condition relationship.

  31. Select + New relationship again

  32. Enter CarePlanToCustomer for Name.

  33. Select CarePlan as source Table, Many for Condition, and SubjectPatient for Source field.

  34. Select Customer as target Table, One for Condition, and Id for Source field.

  35. Select Save.

  36. Select + New relationship one more time.

  37. Enter CarePlanToPatient for Name.

  38. Select CarePlan as source Table, Many for Condition, and SubjectPatient for Source field.

  39. Select Patient as target Table, One for Condition, and Id for Source field.

  40. Select Save.

  41. You should have six relationships. Select Visualizer.

    Screenshot of the relationships list.

  42. The relationships look as shown in the following image.

    Screenshot of the Visualizer of six relationships.