In Dynamics 365 CRM or Power Platform, Application Id is required (i.e., oAuth) to authenticate. Here we are going to register a new App in Azure Active Directory so that from Dynamics CRM we can use this app id in the applications most of the common scenarios is to have this app id to connect from server side code or connect through XRM Toolbox with this App ID or through Post Man tool to connect to Dynamics CRM to test Dynamics 365 Web API Requests.
Login to the required Dynamics CRM/ Power Apps environment using URL make.powerapps.com by providing username and password and go to solutions as shown in the below figure.
After Step 1, now login to Azure portal by using url portal.azure.com with same D365 CRM Trial or normal environment in another tab as shown in the below figure.
After Step 2, click on portal menu to the left in the above screen and select Azure Active Directory as shown in the below figure.
After Step 3, in Azure Active Directory under Manage section select App Registrations and click on New Registration as shown in the below figure.
After Step 4, provide name of the app and select appropriate account types , here in this example I have selected Accounts in any organizational directory and click on Register as shown in the below figure.
After Step 5, App will be registered, copy Application (client) ID which is generated and keep it to use in applications or in Post Man application as shown in the below figure.
- Please make sure login with your Dynamics environment url first.
- Log into azure portal with the same office 365 tenant of Dynamics crm.
- Select appropriate account type as specified in Step 5 .
- Don’t forget to copy App Id mentioned in Step 6.
Conclusion: In this way, one can easily register an app in Azure Active Directory with Dynamics CRM Trial Environment or Office Tenant.