An Azure service that provides a registry of Docker and Open Container Initiative images.
Welome to Microsoft Q&A @Aashish Divyaraj I hope you are doing well today,
Based on the current Microsoft documentation, there isn't a documented exclusion mechanism to exclude a specific ACR repository, image, or tag from Defender for Containers registry vulnerability assessment while keeping Registry Access enabled for the subscription.
Granular Exclusion Capability
- Native Registry/Tag Exclusion: Not supported. You cannot selectively disable scanning for specific registries, repositories, or tags while keeping registry protection active on the subscription.
- Finding Disable Rules vs. Cost Optimization: Microsoft Defender for Cloud allows creating "Disable Rules" based on CVE, severity, or image digest. However, these rules only suppress recommendations from appearing in the portal; the underlying image is still scanned in a sandbox environment, meaning it does not reduce scanning costs.
BUT What i would do ...:
- Subscription-Level Isolation (Recommended Azure Landing Zone Pattern):
The standard Microsoft Cloud Adoption Framework (CAF) guidance is to isolate environments across separate subscriptions (e.g., Sub-Workload-Prod and Sub-Workload-NonProd). This allows you to enable Defender for Containers on the Production subscription while leaving it disabled on Dev/QA to eliminate unwanted scanning charges.
- Shift-Left Scanning for Non-Production:
Disable registry assessment for non-prod environments and instead scan images directly in your CI/CD pipelines (e.g., using GitHub Actions, Azure Pipelines, Trivy, or Microsoft Defender for DevOps). This catches vulnerabilities during the build stage before pushing, avoiding runtime ACR scanning costs entirely.
- ACR Cache / Staging Repositories:
If you must keep everything in one subscription, ensure Dev/QA pipelines only push release-ready images to ACR rather than intermediate build artifacts on every commit to minimize billable image events.
References:
- Microsoft Defender for Containers overview and architecture
- Disable vulnerability findings on container images
- Azure landing zone design principles - subscription democratization
If this answer helped clarify the platform capabilities and save you troubleshooting time, please consider marking it as Accepted. This helps others in the community find similar solutions.