Check ID:
Provider: Azure
Service:
Severity: MEDIUM
Categories:
Resource type:
app_register_with_identityProvider: Azure
Service:
appSeverity: MEDIUM
Categories:
identity-accessResource type:
microsoft.web/sitesWhat this check verifies
Azure App Service web apps are configured with a managed identity (identity: SystemAssigned or UserAssigned) for token-based access to Azure resources without embedded credentials
Risk
Missing managed identity drives reliance on stored secrets. Leaked credentials enable unauthorized access to SQL, Storage, or Key Vault, leading to data exfiltration, tampering, and lateral movement. Secret expiry or revocation can break connectivity, degrading availability.Recommendation
Enable a managed identity and use it for all service-to-service access. Apply least privilege on target resources and eliminate secrets from code and app settings. Remove legacy credentials, rotate residual keys, and monitor usage for defense in depth. Use system-assigned per app; user-assigned for reuse or separation.Remediation
- CLI
- Terraform
- Native IaC
- Dashboard steps
az webapp identity assign —resource-group <RESOURCE_GROUP_NAME> —name <APP_NAME>
References
- https://learn.microsoft.com/en-us/azure/azure-app-configuration/howto-integrate-azure-managed-service-identity
- https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad?tabs=workforce-tenant
- https://www.trendmicro.com/cloudoneconformity/knowledge-base/azure/AppService/enable-registration-with-microsoft-entra-id.html
Where this check fires
This check runs on every scheduled scan against your Azure account. Findings appear at Cloud Security → Findings filterable byCheck ID = app_register_with_identity. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Azure checks