Bicep error code - BCP147

This error occurs when you have a decorator that is expecting to be followed by a param declaration, but miss the declaration.

Error description

Expected a parameter declaration after the decorator.

Solutions

Add the parameter declaration after the decorator. For a list of valid parameter decorators, see Decorators.

Examples

The following example raises the error because the param declaration is missing.

@allowed()

You can fix the error by adding the param declaration.

@allowed([
  'foo'
  'bar'
])
param stringParam string = 'foo'

Next steps

For more information about Bicep error and warning codes, see Bicep core diagnostics.