| title | BCP266 |
|---|---|
| description | Expected a metadata identifier at this location. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic occurs when the metadata declaration missing the identifier.
Expected a metadata identifier at this location.
Error
Add the metadata identifier, and complete the declaration.
The following example raises the diagnostic because type declaration metadata misses the identifier.
metadataYou can fix the diagnostic by completing the metadata declaration.
metadata description = 'Creates a storage account and a web app'For more information, see Metadata.
For more information about Bicep diagnostics, see Bicep core diagnostics.