9.4 Ensure that Register with Entra ID is enabled on App Service

Information

Managed service identity in App Service provides more security by eliminating secrets from the app, such as credentials in the connection strings. When registering an App Service with Entra ID, the app will connect to other Azure services securely without the need for usernames and passwords.

Rationale:

App Service provides a highly scalable, self-patching web hosting service in Azure. It also provides a managed identity for apps, which is a turn-key solution for securing access to Azure SQL Database and other Azure services.

Solution

From Azure Portal

Login to Azure Portal using https://portal.azure.com

Go to App Services

Click on each App

Under Setting section, Click on Identity

Under the System assigned pane, set Status to On

From Azure CLI
To register with Entra ID for an existing app, run the following command:

az webapp identity assign --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME>

From PowerShell
To register with Entra ID for an existing app, run the following command:

Set-AzWebApp -AssignIdentity $True -ResourceGroupName <resource_Group_Name> -Name <App_Name>

Default Value:

By default, Managed service identity via Entra ID is disabled.

See Also

https://workbench.cisecurity.org/benchmarks/12346

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-2(1), CSCv7|16.2

Plugin: microsoft_azure

Control ID: 90071f87f7c92907c5958b4b66690581b52128edbe469f52bc2119017d51ddbd