| title | BCP132 |
|---|---|
| description | Expected a declaration after the decorator. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic occurs when you have a decorator but there is no declaration following it.
Expected a declaration after the decorator.
Error
Add the proper type declarations after the decorator.
The following example raises the diagnostic because there are no declarations after the decorator.
@description()You can fix the diagnostic by removing the decorator or adding the declaration after the decorator.
@description('Declare a existing storage account.')
resource store 'Microsoft.Storage/storageAccounts@2023-05-01' existing = {
name: 'mystore'
}For a list of valid decorators, see Decorators.
For more information about Bicep diagnostics, see Bicep core diagnostics.