-
Notifications
You must be signed in to change notification settings - Fork 759
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
'metadata' top-level property rejected on resources #223
Comments
@stuartko - do you remember why you needed this? We're thinking about continuing to not allow it |
Mostly just to keep parity with ARM templates (to allow decompile to work and be lossless). I’ve seen a few enterprise customers using it while I’ve investigated past incidents. If we do not think parity with ARM is critical I think it should be safe to drop. |
We use the metadata as a documentation source to generate markdown of our templates Combined with All our current templates have mandatory metadata on parameters and outputs for this very reason |
Portal also uses it... since json supports it (in various places) bicep should too... |
Related: #1665 |
Currently 'metadata' is a supported property in ARM templates for storing customer metadata of any type (it's effectively ignored by ARM). In Bicep, specifying metadata in the top-level resource results in a rejection:
Error BCP037: The property 'metadata' is not allowed on objects of type 'Microsoft.Storage/storageAccounts@2019-04-01'.
The text was updated successfully, but these errors were encountered: