Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 840 Bytes

File metadata and controls

46 lines (30 loc) · 840 Bytes
title BCP166
description Duplicate <decorator-name> decorator.
ms.topic reference
ms.custom devx-track-bicep
ms.date 10/30/2025

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.