Go to App registrations in the Azure portal. If needed, sign in with your Microsoft account.
Select New registration, then enter an application name.
Under Supported account types, select Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)
In Redirect URIs, select Web, and then enter https://<app-domain-name>/.auth/login/aad/callback. Replace <app-domain-name> with the domain name of your app. For example, contoso.azurewebsites_net/.auth/login/aad/callback. Be sure to use the HTTPS scheme in the URL.
Select Register.
Copy the Application (Client) ID. You'll need it later.
From the left pane, select Certificates & secrets > New client secret. Enter a description, select the validity duration, and select Add.
Copy the value that appears on the Certificates & secrets page. After you leave the page, it won't be displayed again.
Greetings,
Peter