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 parameter decorator.
Function <function-name> can't be used as a parameter decorator.
Error
Use the valid decorators for parameter declarations. For more information, see Decorators.
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
For more information about Bicep diagnostics, see Bicep core diagnostics.