Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 955 Bytes

File metadata and controls

43 lines (28 loc) · 955 Bytes
title BCP125
description Function <function-name> can't be used as a parameter decorator.
ms.topic reference
ms.custom devx-track-bicep
ms.date 10/30/2025

Bicep diagnostic code - BCP125

This diagnostic occurs when you specify an invalid parameter decorator.

Description

Function <function-name> can't be used as a parameter decorator.

Level

Error

Solutions

Use the valid decorators for parameter declarations. For more information, see Decorators.

Examples

The following example raises the diagnostic because @export() isn't a valid decorator for parameters.

@export()
param name string 

You can fix the diagnostic by providing the correct decorator for parameters:

@description('Specify the resource name.')
param name string 

Next steps

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