CIS Microsoft Azure Foundations Benchmark v1.4.0/AppService/109 of 115
9.5Ensure that Register with Azure Active Directory is enabled on App Service
Control family: AppService
Control description
Managed service identity in App Service makes the app more secure by eliminating secrets from the app, such as credentials in the connection strings. When registering with Azure Active Directory in the app service, the app will connect to other Azure services securely without the need of username and passwords.
How to implement
ResponsibilityCustomerYou configure and operate this in your own cloud accounts.
A managed identity gives the app its own identity in Microsoft Entra ID, so it can reach Key Vault, storage and databases without passwords or keys in its settings. There is nothing to leak or rotate.
Before you start
The same on every cloud, before the steps in the tabs.
- Record in the App Service standard that apps use managed identities, not stored credentials, to reach other Azure services, so every new app and deployment slot starts with it.
- List the secrets each app holds today, to be replaced.
Evidence
- The App Service configuration standard
On Azure the tasks turn on the system-assigned managed identity for each app, then keep it checked with the CIS standard.
Task 1Turn on the app's managed identity
- Sign in to the Azure portal at portal.azure.com and open App Services, then the app.
- Select Settings > Identity.
- On the System assigned tab, switch Status to On.
- Select Save and confirm.
- Check it: the tab shows an object ID; grant that identity the roles it needs on the resources it uses, and remove the old secrets.
Task 2Keep it checked with the CIS v1.4.0 standard in Defender for Cloud
- Open Microsoft Defender for Cloud > Regulatory compliance and select Manage compliance policies.
- Select the subscription, select Security policies, find CIS Microsoft Azure Foundations Benchmark v1.4.0 and toggle its status to On (once per subscription).
- Back on Regulatory compliance, open the CIS Microsoft Azure Foundations Benchmark v1.4.0 standard and expand recommendation 9.5.
- Open the assessment for App Service apps should use managed identity and Function apps should use managed identity and fix the resources it lists as non-compliant.
- Check it: every resource under recommendation 9.5 shows as passing after the next evaluation.
Evidence
- The Identity page of each app, showing the managed identity on
- The CIS v1.4.0 standard, with recommendation 9.5 passing
Not applicable. This benchmark covers Azure only.
Not applicable. This benchmark covers Azure only.
Console steps as of 5 November 2026. Not every step has been confirmed in a live console yet, and menus and labels can move between releases, so look for the nearest match if one has changed.