Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment from private registries #5148

Open
WhitWaldo opened this issue Nov 11, 2021 · 1 comment
Open

Deployment from private registries #5148

WhitWaldo opened this issue Nov 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@WhitWaldo
Copy link

WhitWaldo commented Nov 11, 2021

Is your feature request related to a problem? Please describe.
With private registries, we've got these great centralized stores to which we can upload our versioned templates to consume as modules in still other templates. Maybe this is possible today and the documentation just hasn't caught up, but it'd be amazing to be able to similarly deploy directly off these private repositories as opposed to keeping non-centralized module copies in our various CI/CD pipelines and simply pass our various parameters as part of a New-AzResourceGroupDeployment operation, passing in the 'br' path to the repository instead of a local template file.

Alternatively, in the shorter term, offer an opposite option to bicep publish that easily lets me retrieve the template from the ACR store so I can temporarily store it locally to pass into the method myself.

Describe the solution you'd like
In order of what I'd prefer to see:

  1. Bicep command to deploy from module registry
    bicep deploy -path "br:abc.azurecr.io/bicep/modules/myapp:v1.0" -resourceGroup "MyResourceGroup"

  2. Update to RG deployment script to use registry path instead of local template path
    New-AzResourceGroupDeployment -ResourceGroupName "MyResourceGroup" -RegistryPath "br:abc.azurecr.io/bicep/modules/myapp:v1.0"

  3. Download from published ACR instance to local file, then deploy: bicep download -path "br:abc.azurecr.io/bicep/modules/myapp:v1.0" -localPath "myapp.bicep" New-AzResourceGroupDeployment -ResourceGroupName "MyResourceGroup" -TemplatePath .\myapp.bicep

@WhitWaldo WhitWaldo added the enhancement New feature or request label Nov 11, 2021
@ghost ghost added the Needs: Triage 🔍 label Nov 11, 2021
@alex-frankel
Copy link
Collaborator

In theory, this should be something we can enable since all modules should be deployable as individual entities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants