STEP 1: Register application

Prev Next

In this step you will register a new application on Azure with appropriate permissions, create client secrets and gather information in your notepad for the next steps.

1. Create the application

  1. In the Azure portal home screen, open the side menu and click Microsoft Entra ID.
    image.png

  2. Now, from the side menu click Manage > App registration.
    The App registration menu opens.

  3. From the upper menu, click New registration.
    image
    The Register an application window opens.

  4. Under the Name field, enter a descriptive name.

  5. Under the Redirect URI section, select Web platform and paste http://localhost:5110 in the URL field.
    image

  6. Click Register.
    The application window opens.

2. provide API permissions

  1. From the side menu, click API permissions > + Add a permission.
    image
    The Request API permissions panel opens.

  2. Scroll down to locate the Office 365 Management APIs tile and click on it.
    image

  3. Select the Delegated permissions type and check all permission checkboxes.
    image

  4. Now select the Application permissions type and check all permission checkboxes.
    image

  5. Click Add permissions to close the panel and return to the application window.

  6. Click Grant admin consent for directory to grant admin permissions.

3. Create client secret

  1. From the side menu, click Certificates & secrets.

  2. Click New client secret to open the client secret panel.
    image

  3. In the Description field, enter a descriptive title.

  4. From the Expires dropdown list, select 24 months.

  5. Click Add to add the secret.
    image
    The secret now appears under the Client secrets list.

  6. Copy the client secret Value and Secret ID to a notepad for later use.
    image

❗️IMPORTANT

After a while, the client secret value will be hidden from view and you will not be able to retrieve it again.

4. Retrieve Tenant ID and Application ID

  1. From the side menu, click Overview.

  2. Locate the Application (client) ID and Directory (tenant) ID.

  3. Copy and paste these values into a notepad for later use.