How to configure Azure app, App Key and Secret
Pay Attention
When copying Application ID and Directory ID to Business Central pay attention to not invert values !!Firstly you need to Log in to Microsoft Azure (https://portal.azure.com/#home)
 - how to configure azure app, app key and secret/1_EX069.03 Azure Setup.png)
and search “App registration”
 - how to configure azure app, app key and secret/2_EX069.03 APP Reg.png)
Open “New registration” and enter the Name and the URL callback:
 - how to configure azure app, app key and secret/3_CallBack.png)
| Business Central | URL |
|---|---|
| SaaS | Enter https://businesscentral.dynamics.com/OAuthLanding.htm |
| onPrem | URL/InstanceName/OAuthLanding.htm (eg. http://localhost:8080/BC160/OAuthLanding.htm) |
Press Register.
Authentication
In Authentication check “Access Tokens” e “ID Tokens”. Set to Yes “Allow public client flow” and Save
 - how to configure azure app, app key and secret/4_EX069.03 Authent.png)
Certificate & Secrets
In Certificate & Secrets add a “New Client Secret” and set the Expiration to “Never”.
Once created it must be copied and saved because it will only be visible during creation
 - how to configure azure app, app key and secret/1_EX069.03 Secret.png)
API Permissions
In API Permissions add a new permission “Microsoft Graph” type and choose “Application”
 - how to configure azure app, app key and secret/5_EX069.03 API.png)
finally select the “sites.readwrite.all” permission and click on “Add permissions”
 - how to configure azure app, app key and secret/6_EX069.03 Permission.png)
Click on “Grant admin consent for X” (it will start the authorization request)
 - how to configure azure app, app key and secret/98_EX069.03 Admin GRANT.png)
finally return to the “Overview” tab and copy the client ID and tenant
 - how to configure azure app, app key and secret/99_EX069.03 Copy To ClipBoard.png)
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.