Azure Container Registry
ACR with geo-replication, retention/trust policies, private endpoint and AcrPull role wiring for AKS/Container Apps.
Verification
Live-testedReally deployed to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.
Conformance
- Static validation (fmt · validate · tflint)
- Security scan clean (Checkov)
- Plan test superseded by live test
Provenance
- SHA-256 checksum
- Cosign signature
Functional
- Live-tested - applied, verified, destroyed
Last verified 2026-06-29 · how we verify
Verify this download
cosign · sha-256Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.
# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub
# 2. This module's Sigstore bundle
curl -o azure-acr-1.0.0.sigstore.json \
https://www.iac-bazaar.com/api/artifacts/azure-acr/signature
# 3. Verify the tarball you downloaded
cosign verify-blob \
--key cosign.pub \
--bundle azure-acr-1.0.0.sigstore.json \
azure-acr-1.0.0.tar.gz
# → Verified OK
# 4. (optional) confirm the checksum too
echo "98ea079ef4fb506dfbda6099042aa14e32c8fc4713a1ad3b62833d3e0a30623d azure-acr-1.0.0.tar.gz" | sha256sum -cUse it from the registry
terraform · opentofumodule "acr" {
source = "www.iac-bazaar.com/iac-bazaar/azure-acr/azure"
version = "1.0.0"
}Paid module — needs a purchase (or a subscription that covers it) plus a registry token from /account/tokens. Full setup: registry docs.
Inputs & outputs
Create a free account to read this module's contract
The declared contract — every input name, type, default and description, plus every output — is shown to signed-in accounts, not to anonymous visitors.
A free account sees the contract of every Free module. This one is Basic, so its contract unlocks when you buy it.
Documentation
azure-acr
Azure Container Registry with geo-replication, retention/trust policies,
private endpoint and AcrPull role wiring for AKS/Container Apps. Works with
Terraform and OpenTofu (>= 1.6), AzureRM provider >= 4.0, < 5.0.
Secure defaults:
- Admin account disabled — Entra identities + RBAC only
- Anonymous pull disabled
- Untagged manifests purged after 7 days (Premium retention policy)
- Optional IP network rules (default action Deny) and Private Link endpoint
- Trusted Azure services bypass kept (configurable)
- Premium-only features are guarded by plan-time preconditions, not silent drops
Requirements
- Terraform or OpenTofu
>= 1.6 hashicorp/azurerm>= 4.0, < 5.0
Notes for integrators:
- The role-assignment maps use static keys so principal IDs may be unknown at plan time (e.g. straight from another module's output).
- For private-endpoint DNS, link
privatelink.azurecr.ioto your VNet and pass its zone ID inprivate_endpoint.private_dns_zone_ids. - Use
sku = "Basic"for cheap dev registries — the module blocks Premium-only options at plan time instead of failing mid-apply.
License
Commercial — IaC Bazaar EULA. © IaC Bazaar. Original work (not derived from a third-party module).
Usage code & full reference unlock after purchase
The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence - shown here and bundled in the download.
- Usage
- Inputs
- Outputs
Related modules
Artifact Registry Repositories
Docker/Maven/npm repos with cleanup policies, remote and virtual repositories, CMEK and reader/writer IAM.
ECR Repository
ECR repo with lifecycle rules, scan-on-push, immutable tags, and cross-account/replication policies.