MP.AZR.1030 Disable the admin account for Azure Container Registries
Azure Container Registry's admin account provides a shared credential with broad registry access. This custom test fails when adminUserEnabled is true and is not APRL-mapped.
Remediation action:
- In the Azure portal, open the registry and select Access keys.
- Before disabling the admin account, identify workloads, deployment pipelines, and users that rely on its credentials.
- Migrate those consumers to Microsoft Entra ID or a service principal with only the required permissions, and validate that image pulls and pushes still work.
- After confirming no consumers depend on the admin credentials, turn off Admin user and save.
Using Azure CLI:
az acr update --name <registry> --admin-enabled false
Related links
%TestResult%