Azure / azure-cli

Azure Command-Line Interface
MIT License
3.91k stars 2.88k forks source link

support deployment of bicep modules from Azure Container Registry #28964

Open carlin-q-scott opened 1 month ago

carlin-q-scott commented 1 month ago

Related command az deployment group what-if az deployment group create

Is your feature request related to a problem? Please describe. I tried to deploy an OCI bicep image from Azure Container Registry using the --template-uri argument, but I guess that's not supported because I get back this error:

Unable to retrieve url br:organization.azurecr.io/bicep/modules/module.bicep:0.0.1

Describe the solution you'd like Support directly deploying a bicep module from Azure Container Registry using the same Uri I used to publish to the registry.

Describe alternatives you've considered I created a main.bicep file that references the module using the same Uri as specified earlier. This is annoying because it's almost entirely duplicated code, and a lot of it in my case because the module has 20 parameters.

Additional context

yonzhan commented 1 month ago

Thank you for opening this issue, we will look into it.