-
Notifications
You must be signed in to change notification settings - Fork 771
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
Invalid generated ARM for referenced module scope #1454
Comments
I can also confirm this is an issue: Bicep CLI version 0.2.328 (a13b032)
Bicep will build the JSON file with no error. Running "New-AzSubscriptionDeployment -Name testdeployment -Location centralus -TemplateFile .\main.json -WhatIf" fails with the below error: |
I think the fix for this is unfortunately to block 'runtime' expressions on the |
I've submitted #1467 for this, but will make sure we discuss as a team before merging to ensure it's the correct approach. |
Bicep version
Bicep CLI version 0.2.328 (a13b032)
Describe the bug
Creating a variable of resourceGroups scope with a name coming from a resoruce-group creation module output, generates an invalid ARM.
To Reproduce
Running
bicep build main.bicep
will generate ARM with this line for the redis nested deployment:Invoking
az deployment sub validate --location westus --template-file main.json
yieldsThe text was updated successfully, but these errors were encountered: