Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This diagnostic occurs when you specify an invalid output decorator.
Description
Function <function-name> can't be used as a output decorator.
Level
Error
Solutions
Use the valid decorators for output declarations. For more information, see Decorators.
Examples
The following example raises the diagnostic because @export()
isn't a valid output decorator.
@export()
output foo string = 'Hello world'
Next steps
For more information about Bicep diagnostics, see Bicep core diagnostics.