Muokkaa

Jaa


Bicep diagnostic code - BCP147

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

Description

Expected a parameter declaration after the decorator.

Level

Error

Solutions

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

Examples

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'

Next steps

For more information about Bicep diagnostics, see Bicep core diagnostics.