Open slavizh opened 2 years ago
I don't think this is a swagger error since location is not required for when the deployment is in the RG scope (defaults to resource group location).
The issue is that the location is required for all the other deployment scopes. We only default this for RG. Is there a way to reflect that in swagger?
Unfortunately, there is no way to handle this complexity in swagger, so we will need to look into special casing the type definition in Bicep.
Didn't mean to close
Bicep version Bicep CLI version 0.4.1124 (66c84c8ee5)
Describe the bug When you define resource Microsoft.Resources/deployments for subscription/management group scope you should get an error that location property is not specified. I did not get such error/warning in VSC/bicep.
To Reproduce Steps to reproduce the behavior:
Additional context Add any other context about the problem here.