This deployment package allows the user to deploy a Proof-of-Concept environment of Azure Synapse Analytics link for Dataverse with spark notebook to (ingest, merge, aggregate and transform) dataset.
1-If you are an internal Microsoft employee, you must complete the prerequisites in this Internal Guide before proceeding to next steps.
2-Owner role (or Contributor roles) for the Azure Subscription is required to deploy the template. This is for creation of a separate Proof-of-Concept Resource Group and to delegate roles necessary for this proof of concept.How To Assign Azure Role.Refer to this official documentation for more details on RBAC role-assignments.
- Navigate to the Dynamics 365 Trial Site.
- Select Try for free for Dynamics 365 Sales.
- Enter your work or school email and select Start your free trial.For Internal Microsoft its the email from the prerequisite step.
- Open a new tab and navigate to the Power Platform Maker Portal.
- In the top right corner, select the Environment to open a right pane with all the environments.
- Select Sales Trial from the list and then select Dataverse>Azure Synapse Link or if you see Data>Azure Synapse Link from the left navigation pane.
- Select + New link and Make Note of the Region required for deploying the Azure resources in the next steps.
-
Fork Out This GitHub Repository into your GitHub account.
If you don't fork repo:
- The spark notebook will not be deployed
- You will get a Github publishing error
-
Click 'Deploy To Azure' button given below to deploy Synapse Workspace with SQL and Spark Pool.
-
Provide the values for:
- Resource group (create new)
- Region - Same Region where Dynamics 365 trial was deployed.Follow instructions in Step 2 to find the Region
- Company Tla - Any three Characters to keep the Azure resource names unique
- Option (true or false) for Allow All Connections - Firewall to allow/deny connection to Synapse SQL
- Option (true or false) for Spark Deployment - Synapse Spark pool, Select "True" for this pacakage deployment
- Spark Node Size (Small, Medium, large) if Spark Deployment is set to true.Recomended "Small"
- Sql Administrator Login
- Sql Administrator Login Password
- Sku
- Option (true or false) for Metadata Sync - Serverless SQL pool can automatically synchronize metadata from Apache Spark
- Frequency
- Time Zone
- Resume Time
- Pause Time
- Github Username (username for the account where this github repository was forked out into)
-
Click 'Review + Create'.
-
On successful validation, click 'Create'.
-
This template deploys necessary resources to run an Azure Synapse Analytics link for Dataverse Proof-of-Concept. Following resources are deployed with this template:
- An Azure Synapse Workspace
- An Azure Synapse SQL Pool
- Apache Spark Pool
- Azure Data Lake Storage Gen2 account
- A new File System inside the Storage Account to be used by Azure Synapse
- A Logic App to Pause the SQL Pool at defined schedule
- A Logic App to Resume the SQL Pool at defined schedule
- A key vault to store the secrets
- Current Azure user needs to have Storage Blob Data Contributor role access to recently created Azure Data Lake Storage Gen2 account to avoid 403 type permission errors. "How to Assign Storage Blob Data Contributor Role"
- After the deployment is complete, click 'Go to resource group'.
- You'll see all the resources deployed in the resource group.
- Click on the newly deployed Synapse workspace.
- Click on link 'Open' inside the box labeled as 'Open Synapse Studio'.
- Click on 'Log into Github' after workspace is opened. Provide your credentials for the github account holding the forked out repository.
- After logging in into your github account, click on 'Develop' icon in the left panel and then Select 'Notebooks'. A blade will appear from right side of the screen.
- Make sure that 'main' branch is selected as 'Working branch' and click 'Save'.
- Before starting with these steps wait around 5-10 mins after ARM template deployment. This allows Azure resources to sync up properly for the Power Platform.
- Open a new tab and navigate to the Power Platform Maker Portal.
- In the top right corner, select the Environment to open a right pane with all the environments.
- Select Sales Trial from the list and then select Dataverse>Azure Synapse Link or if you see Data>Azure Synapse Link from the left navigation pane.
- Select + New link and check "Connect to Your Azure Synapse Analytics Workspace"
- Select Subscription,Resource Group and Storage account the package was deployed in previous deployment step.Click Next.
- Select the following tables to be exported through Synapse Link and click Save.
- Account
- Contact
- Lead
- Opportunity
- On completion the selected tables should show up as synced.
- Same tables can be seen and accessed thorough Synapse workspace. On the left panel click Data and then Lake Database
- Click on the newly deployed Synapse workspace.
- Click on link 'Open' inside the box labeled as 'Open Synapse Studio'.
- Click on 'Develop' icon in the left panel and then Select 'Notebooks'. A blade will appear from the right side of the screen.
- Select the Notebook 'Revenue Summary'.
- Follow the instruction within the Notebook to proceed with the further execution steps.