π‘οΈ Azure App Service is not registered with Microsoft Entra IDπ’
- Contextual name: π‘οΈ App Service is not registered with Microsoft Entra IDπ’
- ID:
/ce/ca/azure/app-service/app-service-registered-with-microsoft-entra-id - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Enable Registration with Microsoft Entra ID
- Internal:
dec-x-1fc681bc
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-1fc681bc | 1 |
Descriptionβ
Descriptionβ
Managed identity in App Service improves security by eliminating secrets in the app, such as credentials in connection strings. When registering an App Service with Entra ID, the app can connect to other Azure services securely without 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 turnkey solution for securing access to Azure SQL Database and other Azure services.
Auditβ
From Azure Portalβ
- In the Azure portal, open the portal menu in the upper left.
- Go to
App Services.- Select each app.
- Under the
Settingssection, selectIdentity.- Under the
System assignedpane, ensureStatusis set toOn.From Azure CLIβ
To check the Register with Entra ID status for an existing app, run the following command:
az webapp identity show \
--resource-group {{resource-group-name}} \
--name {{app-name}} \
--query principalIdThe output should return a unique principal ID.
... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Log in to the Azure portal using https://portal.azure.com.
- Go to
App Services.- Select each app.
- Under
Settings, selectIdentity.- Under the
System assignedpane, setStatustoOn.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}}