Creating the Web/API app
- 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
- When the Create page appears, enter your application's registration information:
- Name: Enter a meaningful application name
- Redirect URI: Web: "https://localhost" - When finished, click Register.
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:
Adding the
1. Click the API permissions in the side menu
2. Click the Add a permission button.
3. Add the permissions from below screenshot. Some permissions are Application Permissions and some are Delegated Permissions
4. Grant Admin Consent to the permissions