| title | BCP129 |
|---|---|
| description | Function <function-name> can't be used as an output decorator. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic occurs when you specify an invalid output decorator.
Function <function-name> can't be used as an output decorator.
Error
Use the valid decorators for output declarations. For more information, see Decorators.
The following example raises the diagnostic because @export() isn't a valid output decorator.
@export()
output foo string = 'Hello world'For more information about Bicep diagnostics, see Bicep core diagnostics.