This demo repository has been overhauled and extensively updated. If you want to see the original version, check out the
demo-v1
tag.
The repo contains a demo to showcase how to work with a private Bicep Module Registry:
- ⚙️ Setting up a private Bicep Module Registry
- ⬆️ Publishing a module to a registry
- ⬇️ Deploy resources by consuming modules from a private and public registry
For each section there is an accompanying README that adds more details. The steps makes use of GitHub Actions to push and pull from the registry, as well as for deploying templates.
- PowerShell 7
- Azure CLI (2.42+)
- Azure PowerShell module (9.0+)
- Bicep (install with
az bicep install
or upgrade withaz bicep upgrade
) (0.12+) - An Azure subscription with Owner permissions
- Permission to create service principals in Azure AD
Note: You can also open this repository in VS Code with a Dev Container to have all tools ready to use.
- Fork this repo
- click Fork in the top-right corner
- Clone your fork of the repo
git clone <repo url>
- Get started with setting up the registry
- Follow up with publishing modules to the registry
- Deploy templates that consume modules from private and public registry