Muokkaa

Jaa


Bicep diagnostic code - BCP166

This diagnostic occurs when you have duplicate decorators.

Description

Duplicate <decorator-name> decorator.

Level

Error

Solutions

Remove the duplicate decorator.

Examples

The following example raises the diagnostic because there's two duplicate decorators.

@description('foo')
@description('bar')
param name string

You can fix the diagnostic by removing one of the duplicate decorators.

@description('bar')
param name string

For more information, see Decorators.

Next steps

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