First you need to connect to Azure Portal with administrator credentials.
From the homepage, click on Azure Active Directory -> App Registration -> New Registration
Application registration form, you must enter some information:
- Name: this is the name of the registration app. Enter a meaningful one.
- In the Supported account types, select Accounts in any organizational directory
- Set the redirect URL. In our case, let’s use Web and http://localhost
Then click on Register
Your application is registered. From the overview, you can find
- the application id
- The tenant id
Copy them somewhere you will need them later.
Now go on API permissions
Click on Add a permission
Select Dynamics CRM under the API Microsoft Graph tab.
Click on Delegated permissions, check the options and click on Add permissions.
Now Click on Certificates & Secrets and create a new client secret.
Add a name and define the expiration duration of your secret value.
Then click on Add.
Your client secret is now created. Copy and keep its value somewhere safe because you won’t be able to copy again once the page is reloaded.