More Info:
Enable Microsoft Defender for Cloud image scanning (or a third-party provider) on your Azure Container Registry to detect vulnerabilities in stored container images before they are deployed.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS AKS
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
Identify target subscription(s) and registry(ies)
- On any machine with Azure CLI access:
- Decide which ACRs are in scope for the cluster (e.g., those referenced in your deployment manifests, Helm charts, or imagePullSecrets).
- On any machine with Azure CLI access:
-
Check whether Microsoft Defender for Cloud is enabled for Container Registries
- On any machine with Azure CLI access:
- If
pricingTierisStandard, MDC is enabled for Container Registries at the subscription level; ifFree, MDC image scanning is not active.
- On any machine with Azure CLI access:
-
Check whether image scanning is enabled on each target ACR
- For each in-scope registry (replace placeholders with real values):
- Review the
true/falsevalue;trueindicates image scanning is enabled on that registry.
- For each in-scope registry (replace placeholders with real values):
-
Decide on the protection model (MDC vs. third-party)
- If you already use a third-party scanner (e.g., integrated via CI/CD or ACR tasks), gather evidence (tool config, sample scan reports, and how they cover all ACR images/tags).
- Compare its coverage and SLAs to MDC’s capabilities; decide if MDC should be enabled, used in combination, or if the third-party solution alone is sufficient for your risk appetite.
-
Enable or adjust configuration where required
- If you decide to enable MDC for Container Registries at subscription level (incurs cost):
- If you need to enable image scanning on a specific registry:
- If you decide not to enable MDC (because of cost or reliance on a third-party solution), document the justification and attach evidence of the alternative scanning.
- If you decide to enable MDC for Container Registries at subscription level (incurs cost):
-
Verify and document the final state
- Re-run:
- And for each in-scope registry:
- Record outputs, decisions (MDC vs. third-party), and any exclusions as part of your security and compliance documentation.
- Re-run:
Using kubectl
Using kubectl
kubectl cannot enable Microsoft Defender for Cloud image scanning or configure Azure Container Registry; this must be done in the Azure portal, Azure CLI, or your IaC targeting the subscription/registry configuration. Refer to the Manual Steps section for the exact Azure-side commands and review process.
Automation
Automation

