Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.