Register the app with Azure
Requirement : Access to Azure platform allowing creation of an application
Operating mode :
- Register an app with Azure Active Directory
- Add a client secret key for the app
- Access authorization to the Dynamics API for the app
1. Register an app with Azure Active Directory
- Sign in to the Azure portal using an account with administrator permission : https://portal.azure.com
- On the Overview page, please note the Tenant Primary domain
🗉 e.g : Azure Tenant Domain = sparklane.fr
- Select App registrations and click on New registration
-
In the Register an application page, enter your application's registration information (Name, Account type and Redirect URl)
▶️
In the Name section, enter a meaningful application name that will be displayed to the users. e.g : Sparklane Connector
Select Accounts in this organizational directory only option from Supported account types section
Redirect URI : enter : Web https://predict.sparklane.fr/oauth-redirect.html
-
-
On the Sparklane Connector app Overview page, hover over Application (client) ID value, and get the value
🗉 e.g Application (client) ID = 93c8xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
2. Add a client secret key for the app
-
Select Certificates & Secrets > New client secret for the app
▶️ Add a meaningful Description of the use for which this key is intended.
The expiration date is chosen according to your security practices. Depending on the date, you will have to reset the client secret key in the Azure portal before its expiration.
⚠️ The Value is only visible during the creation.
🗉 Client secret = X7C***************************
3. App permissions to the Dynamics API
-
Select API permissions tab, click on Add a permission and select “Dynamics CRM”.
⚠️ The app must include the two configured permissions below :
- Dynamics CRM user_impersonation
- Microsoft Graph User.Read
- • At this point, the settings in Azure is complete and you should have :
- the Azure Tenant primary domain name,
- URl of your Dynamics 365 environment,
- the application (client) ID,
- the secret client value.
🗉 For instance :
Azure Tenant Domain = e.g demosparklane.onmicrosoft.com
URL Ms Dynamics = e.g https://demo-sparklane.crm12.dynamics.com/
Application (client) ID = 93c8xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Secret client = X7C***************************