โ
Step-by-Step Guide to Register Azure App for Dynamics 365 API Access
๐ Introduction
- Brief overview of why Azure App Registration is required
- Use cases: Power Automate, Logic Apps, custom apps, or integration scenarios
๐น Step 1: Sign in to Azure Portal
- Go to https://portal.azure.com
- Use the same tenant as your Dynamics 365 environment
๐น Step 2: Register a New App
- Search for App registrations
- Click + New registration
- Fill in:
- Name:
MyD365IntegrationApp
- Supported account types: “Accounts in this organization”
- (Optional) Redirect URI: Leave blank unless needed
- Click Register
โ
Youโll be redirected to the App Overview page.
๐น Step 3: Retrieve Application ID and Tenant ID
- From the Overview tab:
- Copy the Application (client) ID
- Copy the Directory (tenant) ID
๐น Step 4: Create a Client Secret
- Go to Certificates & secrets
- Under Client secrets, click + New client secret
- Add a description and set an expiration
- Click Add and copy the secret value immediately
โ ๏ธ You wonโt be able to retrieve the secret again after navigating away.
๐น Step 5: Grant Dynamics 365 API Permissions
- Go to API permissions
- Click + Add a permission
- Select:
- Dynamics CRM
- Choose Application permissions
- Enable
user_impersonation
- Click Add permissions
- Click Grant admin consent
๐น Step 6: Create Application User in Dynamics 365 (Important)
- Go to Power Platform Admin Center
- Select your environment
- Go to Settings โ Users + Permissions โ Application users
- Click + New app user
- Choose your registered app
- Assign a security role (e.g.,
System Administrator or custom)
๐น Step 7: Test the Connection (Optional)
- Use Postman or code to authenticate using:
- Tenant ID
- Client ID
- Client Secret
- Scope:
https://yourorg.crm.dynamics.com/.default
โ
Conclusion
๐ Introduction
- Brief overview of why Azure App Registration is required
- Use cases: Power Automate, Logic Apps, custom apps, or integration scenarios
๐น Step 1: Sign in to Azure Portal
- Go to https://portal.azure.com
- Use the same tenant as your Dynamics 365 environment
๐น Step 2: Register a New App
- Search for App registrations
- Click + New registration
- Fill in:
- Name:
MyD365IntegrationApp - Supported account types: “Accounts in this organization”
- (Optional) Redirect URI: Leave blank unless needed
- Name:
- Click Register
โ Youโll be redirected to the App Overview page.
๐น Step 3: Retrieve Application ID and Tenant ID
- From the Overview tab:
- Copy the Application (client) ID
- Copy the Directory (tenant) ID
๐น Step 4: Create a Client Secret
- Go to Certificates & secrets
- Under Client secrets, click + New client secret
- Add a description and set an expiration
- Click Add and copy the secret value immediately
โ ๏ธ You wonโt be able to retrieve the secret again after navigating away.
๐น Step 5: Grant Dynamics 365 API Permissions
- Go to API permissions
- Click + Add a permission
- Select:
- Dynamics CRM
- Choose Application permissions
- Enable
user_impersonation
- Click Add permissions
- Click Grant admin consent
๐น Step 6: Create Application User in Dynamics 365 (Important)
- Go to Power Platform Admin Center
- Select your environment
- Go to Settings โ Users + Permissions โ Application users
- Click + New app user
- Choose your registered app
- Assign a security role (e.g.,
System Administratoror custom)
๐น Step 7: Test the Connection (Optional)
- Use Postman or code to authenticate using:
- Tenant ID
- Client ID
- Client Secret
- Scope:
https://yourorg.crm.dynamics.com/.default
โ Conclusion
Emphasize secure storage of secrets (e.g., use Azure Key Vault)
Now you’re ready to use the App ID and Secret in Power Automate, custom connectors, or any client app.

Leave a comment