π‘οΈ 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 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.
Auditβ
From Azure Portalβ
- From Azure Portal open the Portal Menu in the top left.
- Go to
App Services.- Click on each App.
- Under the
Settingsection, Click onIdentity.- Under the
System assignedpane, ensure thatStatusset toOn.From Azure CLIβ
To check Register with Entra ID feature 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 unique Principal ID.
... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Login to Azure Portal using https://portal.azure.com.
- Go to
App Services.- Click on each App.
- Under
Settingsection, Click onIdentity.- 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>