Bicep error code - BCP129

This error occurs when you specify an invalid output decorator.

Error description

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

Solutions

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

Examples

The following example raises the error because @export() isn't a valid output decorator.

@export()
output foo string = 'Hello world'

Next steps

For more information about Bicep error and warning codes, see Bicep core diagnostics.