| title | BCP147 |
|---|---|
| description | Expected a parameter 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 that is expecting to be followed by a param declaration, but miss the declaration.
Expected a parameter declaration after the decorator.
Error
Add the parameter declaration after the decorator. For a list of valid parameter decorators, see Decorators.
The following example raises the diagnostic because the param declaration is missing.
@allowed()You can fix the diagnostic by adding the param declaration.
@allowed([
'foo'
'bar'
])
param stringParam string = 'foo'For more information about Bicep diagnostics, see Bicep core diagnostics.