Azure Bicep: Private Registry Support

On this page

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

Bash1 line
bicep publish ./storage.bicep --target br:myacr.azurecr.io/bicep/storage:v1.0

Consuming from Registry

Bicep6 lines
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.

Written by

Nithin Mohan TK

Hello Namaste! 👋🏻 I'm an accomplished Enterprise Solution Architect & Engineering Leader with 20+ years of progressive experience architecting, building, and scaling transformative enterprise solutions. ⚜️ Solution Architect / AI & Cloud 📌 Galway, Ireland

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.