Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 966 Bytes

File metadata and controls

45 lines (30 loc) · 966 Bytes
title BCP147
description Expected a parameter declaration after the decorator.
ms.topic reference
ms.custom devx-track-bicep
ms.date 10/30/2025

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.