Bicep modules can now be published to a **Private Azure Container Registry (ACR)**, enabling enterprise-scale sharing and versioning of infrastructure templates.
Publishing a Module
bicep publish ./storage.bicep --target br:myacr.azurecr.io/bicep/storage:v1.0
Consuming from Registry
module stg 'br:myacr.azurecr.io/bicep/storage:v1.0' = {
name: 'storageModule'
params: {
location: 'eastus'
}
}
Key Takeaways
- Versioning (`v1.0`) enables safe rollouts and rollbacks.
- Authenticate using `az login` or a Service Principal in CI/CD.
Discover more from C4: Container, Code, Cloud & Context
Subscribe to get the latest posts sent to your email.