Other Articles

App Service – Enable Entra ID Registration

This check ensures that Azure Web Applications are integrated with Microsoft Entra ID (formerly Azure Active Directory) to provide centralized identity management and secure authentication.

Check Details

  • Resource: Azure App Service (Web App)
  • Check: Enable Registration with Entra ID
  • Risk: Without Entra ID integration, applications may rely on weak or unmanaged authentication mechanisms, increasing the risk of unauthorized access.

Remediation via Azure Portal

  1. Log in to the Azure Portal. Azure Portal dashboard
  2. Navigate to App Services and select the affected Web App. Azure App Services list
  3. In the left-hand menu, select Authentication. Web App authentication settings
  4. Click Add identity provider. Add identity provider
  5. Select Microsoft as the identity provider.
  6. Choose Create new app registration or select an existing registration under your Entra ID tenant. Microsoft Entra ID configuration
  7. Click Add and then Save to enable authentication.

Remediation via Azure CLI

  1. Open Azure Cloud Shell or a local terminal with Azure CLI installed. Azure Cloud Shell
  2. Enable Microsoft Entra ID authentication for the Web App:

    az webapp auth microsoft update \
     --resource-group <resource-group> \
     --name <web-app-name> \
     --client-id <app-registration-client-id> \
     --client-secret <app-registration-client-secret>
    
  3. Verify authentication configuration:

    az webapp auth show \
     --resource-group <resource-group> \
     --name <web-app-name>
    

Replace <resource-group>, <web-app-name>, <app-registration-client-id>, and <app-registration-client-secret> with your actual values.