How to Create and Configure the Azure Application
Create New Application Registration
- Go to https://portal.azure.com/
- Log in with Azure Global Admin user credentials.
- Click Microsoft Entra Id and click on the desired directory.
- From the menu select App Registrations.
- Click New registration to register a new app.
- Name: Enter a name for your app.
- Supported account types: Select Account in this organizational directory only (BA Insight only - single tenant).
- Redirect URI: Complete the following:
- Application type: Select Web from the Redirect URI drop-down menu.
- Web app URL: Enter a URL of your choosing. (The URL is not used in the SharePoint Online Authorization mechanism)
- Click Register at the bottom of the page.
Configure Application Permissions
- Within the app, expand Manage > API permissions.
-
Under API Permissions, click Add a permission > Microsoft Graph.
-
Select the following permissions for the app:
APPLICATION PERMISSIONS > Select the following permissions:
- Directory.Read.All
- Group.Read.All
- Member.Read.Hidden
- User.Read.All
- Team.ReadBasic.All
- Click Grant consent to grant the selected permissions.
Configure the Azure App to Use Certificate Authentication
Export the Certificate
If you use another program, such as IIS, when you export the certificate, ensure you do not mark the key as exportable:
Also, when exporting your certificate using IIS, note that it MUST BE Base-64 encoded:
Upload the Certificate to Azure App
- Open the Azure app you created in the previous steps and click Certificates and secrets in the left panel.
- Upload your newly created certificate.
Assign the required roles
To access blob data in the Azure portal with Microsoft Entra credentials, a user must have the following role assignments:
To add these roles, do the following:
-
In the Azure portal, select your Azure storage account.
-
In the left panel, click Access control (IAM).
-
Click Role assignments > Add > Add role assignment.
-
On the Role tab, select the roles listed above.
-
Click Save.
For more information, see Assign Azure roles using the Azure portal in the Microsoft documentation