Registering an Azure App

Steps

  1. Login to Azure Portal.
  2. If there are multiple tenants to choose from, use the Settings icon in the top menu to switch to the tenant in which needs to be registered to the application from the Directories + subscriptions menu.
  3. Browse to App Registration and select New registration.

  4. On the App Registration page enter the below information and click the Register button.
    • Name: (Enter a meaningful application name that will be displayed to users of the app.)
    • Supported account types:
      • Select which accounts that the application will support. The options should be similar to the below screenshot.
      • Accounts in this organizational directory only can be selected.

      • Leave the Redirect URI as empty and click Register.

  5. Note the Application (client) ID, Directory (tenant) ID values.
  6. Navigate to Manage > Certificates & secrets on the left menu, to create a new client secret.
  7. Provide a meaningful description and expiry to the secret and click on Add.
  8. Once a client secret is created, note its Value and store it somewhere safe.

    Note: This value cannot be viewed once this page is closed.
  9. Navigate to Manage > API permissions on the left menu and Add a permission.
  10. Select Microsoft APIs > Microsoft Graph.
  11. Select Application permissions.
  12. For UnifiedPolicy.Tenant.Read
    1. Navigate to Manage > API permissions on the left menu and Add a permission.
    2. Select APIs my organization uses tab.
    3. Search for Microsoft Information Protection Sync Service.
    4. Select Application permissions > UnifiedPolicy.Tenant.Read.
  13. Permissions required
    • For scanning
      • Microsoft Graph > Application permissions > Sites > Sites.Read.All
    • For reading Sensitivity labels
      • Microsoft Graph > Application permissions > InformationProtectionPolicy > InformationProtectionPolicy.Read.All
      • APIs my organization uses > Microsoft Information Protection Sync Service > Application permissions > UnifiedPolicy.Tenant.Read
    • For revoke permissions
      • Microsoft Graph > Application permissions > Files > Files.ReadWrite.All
    • For tagging
      • Microsoft Graph > Application permissions > Sites > Sites.Manage.All
  14. Once all the required permissions are added, click Grant admin consent