Skip to content
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

Open
stuartko opened this issue Aug 14, 2020 · 5 comments
Open

'metadata' top-level property rejected on resources #223

stuartko opened this issue Aug 14, 2020 · 5 comments

Comments

@stuartko
Copy link

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'.

@stuartko stuartko added the bug Something isn't working label Aug 14, 2020
@alex-frankel alex-frankel added this to the v0.2 milestone Aug 17, 2020
@alex-frankel alex-frankel added this to To Do in 0.2 release Aug 31, 2020
@alex-frankel
Copy link
Collaborator

@stuartko - do you remember why you needed this? We're thinking about continuing to not allow it

@stuartko
Copy link
Author

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.

@alex-frankel alex-frankel removed the bug Something isn't working label Nov 6, 2020
@stweb1963
Copy link

We use the metadata as a documentation source to generate markdown of our templates

Combined with templateSpecs, versioning, tags, etc. this is a very convenient method of generating markdown

All our current templates have mandatory metadata on parameters and outputs for this very reason
Because bicep disallows, we loose this ability to auto document our outputs

image

@bmoore-msft
Copy link
Contributor

Portal also uses it... since json supports it (in various places) bicep should too...

@anthony-c-martin
Copy link
Member

Related: #1665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants