You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the resourceGroup function that references a parameter, omits the resourcegroup from being outputted in the compiled ARM template.
To Reproduce
Create the following bicep files: main.bicep
Run az bicep build --file main.bicep
Open the compiled ARM template and note that there's no resourcegroup parameter that contains an expression (there's no resourcegroup parameter at all), and thus the resource will be deployed on subscription level.
Additional context
This might be related to #15570 and #15517. These issues should be solved in the latest version, but do not seem to fix the fact that the resourcegroup is omitted in the compiled ARM template. When not directly referencing a parameter but a static value (like true) the resourcegroup is added to the ARM template.
The text was updated successfully, but these errors were encountered:
@GABRIELNGBTUC you just saved my life. For the bicep team, as long as the example above isn't supported, is it possible to make sure that the linter returns an error when specifying the above scenario?
Bicep version
Bicep CLI version 0.31.92 (b065093)
Describe the bug
Using the resourceGroup function that references a parameter, omits the resourcegroup from being outputted in the compiled ARM template.
To Reproduce
Create the following bicep files:
main.bicep
module.bicep
Run az bicep build --file main.bicep
Open the compiled ARM template and note that there's no resourcegroup parameter that contains an expression (there's no resourcegroup parameter at all), and thus the resource will be deployed on subscription level.
Additional context
This might be related to #15570 and #15517. These issues should be solved in the latest version, but do not seem to fix the fact that the resourcegroup is omitted in the compiled ARM template. When not directly referencing a parameter but a static value (like true) the resourcegroup is added to the ARM template.
The text was updated successfully, but these errors were encountered: