Sign in to the Azure portal.
At the top, you'll see a search box. Find App Registrations and click it
Click on New Registration
Name the application and select “Multiple Entra ID tenants”. You can then allow all tenants or selected tenants only
In “Authentication”, add Redirect URI - Web
Add these two URLs and update “adminsiteurl” with your admin site url. https://adminsiteurl/api/businessgpt/AzureAuthCallbackConsent and https://adminsiteurl/AzureAccount/Login
Creating a secret key:
Click on the application you've created.
Click on Certificates & secrets in the side menu
Click on New client secret
Set a description and Expiration date. Click on Add
Make sure to keep the value somewhere safe. It will not be accessible afterward:
8. Add API Permissions
Click the Add a permission
Add the permissions from the screenshot below.
For SharePoint Private AI - add these extra permissions
9. Token Configuration - Add optional claim - ID
Add these optional claims