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

Bicep tutorial deployment conflict using New-AzResourceGroupDeployment and '-name' parameter #1799

Closed
lrottach opened this issue Mar 9, 2021 · 2 comments · Fixed by #1861
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation
Milestone

Comments

@lrottach
Copy link
Contributor

lrottach commented Mar 9, 2021

Bicep version
Bicep CLI version 0.3.1 (d0f5c9b164)

Describe the bug
When following the tutorial, the New-AzResourceGroupDeployment command could produce an error using the provided Bicep files.
The 'name' parameter in the mentioned PowerShell example only specifies the deployment name but do not overwrite the storage account name parameter in the Bicep file.

New-AzResourceGroupDeployment -TemplateFile ./main.bicep -ResourceGroupName my-rg -location westus -name uniquelogstorage001

The phrase 'name' for that parameter seems a little bit unlucky in this case.
For someone who is exactly following the tutorial this could be a little bit confusing.

To Reproduce

Deploying the Bicep file '01.bicep' using the command from the screenshot below.
Providing any name using the '-name' parameter.
See the provided name only affects the deployment name and not the actual storage account name.

capture-2021-03-09 at 13 42 19@2x

Additional context
Add any other context about the problem here.

@ghost ghost added the Needs: Triage 🔍 label Mar 9, 2021
@lrottach
Copy link
Contributor Author

lrottach commented Mar 9, 2021

I will try to create a pull request about that issue during this week which solves it.

@anthony-c-martin
Copy link
Member

Thanks for pointing this out!

@alex-frankel alex-frankel added bug Something isn't working documentation Improvements or additions to documentation and removed Needs: Triage 🔍 labels Mar 11, 2021
@alex-frankel alex-frankel self-assigned this Mar 11, 2021
@alex-frankel alex-frankel added this to the v0.4 milestone Mar 11, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants