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 try to use a Bicep function as a decorator, but the function isn't suitable for that purpose.
Function <function-name> can't be used as a decorator.
Error
Use valid decorators. For a list of parameter decorators, see Decorators.
The following example raises the diagnostic because uniqueString()
can't be used as a parameter decorator.
@uniqueString()
param name string
You can fix the diagnostic by using the valid decorators.
@description('Provide resource name.')
param name string
For more information about Bicep diagnostics, see Bicep core diagnostics.