Open afscrome opened 3 years ago
I think this is actually a combination of two bugs/limitations:
The decompiler doesn't do any of its own filtering out based on type information, as this could be potentially destructive if we have type definition inaccuracies.
Also note that #3000 will result in these being warnings rather than errors with the next Bicep release.
@anthony-c-martin Are those bugs / limitations tracked elsewhere? If so, do you want to close this issue in favour of those.
This should now be a warning in 0.4.412. We'll leave this open to track the swagger fix.
Bicep version Bicep CLI version 0.4.63 (7ebed03284)
Describe the bug After exporting the ARM json template from a service bus resource in the portal, I was unable to decompile it to bicep due to several errors about
The property "location" is not allowed on objects of type ...
Not sure if this is a bug with the bicep decompiler / api spec not allowing this property, or with the azure template generation incorrectly including the
location
properties.A selection of those errors are below
To Reproduce
Additional context After commenting out all location properties (except that on the root
Microsoft.ServiceBus/namespaces
resource), I was able to successfully decompile the template.