Register a Service Principal Application for the Analytics Microservice

In order to display license information from Azure, the Analytics App Service that hosts the Analytics Microservice needs to be authenticated to your Azure tenant. To provide this authentication, you need to register a service principal application in your tenant and configure it to pass a token to the Analytics App Service.

To register a service principal application for the Analytics Microservice in Azure AD

  1. Log in to your Azure portal as a user with the necessary permissions to create an application in Azure AD.

  2. In Azure, navigate to your Azure Active Directory.

  3. On the Azure navbar, click App registrations and then click New registration.

     

  4. Name the application, select the scope for the application (single or multitenant) and click Register.

     

  5. Once the application is registered, on the navbar click Authentication and then click Add Platform.

     

  6. Under Web applications, select Single-page application.

     

  7. In the Configure single-page application pane do the following:

    1. In the Redirect URIs field, enter the URL for the Analytics App Service, such as https://{{analytics-url}}/callback, where {{analytics-url}} is the URL for the Analytics App Service you created.

    2. Under Implicit grant, select ID tokens.

    3. Click Configure.

     

  8. In the Single-page application pane, click Add URI.

     

  9. Enter the URL for App Service authentication, such as https://{{analytics-url}}/.auth/login/aad/callback, where {{analytics-url}} is the URL for the Analytics App Service you created and then click Save.

     

  10. Optionally, click Branding on the navbar and set any information.