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 module decorator.
Function <function-name> can't be used as a module decorator.
Error
Use the valid decorators for module declarations. For more information, see Decorators.
The following example raises the diagnostic because @export()
is not a valid module decorator.
@export()
module storage 'br/public:avm/res/storage/storage-account:0.11.1' = {
name: 'myStorage'
params: {
name: 'store${resourceGroup().name}'
}
}
The valid module decorators are @description()
and @batchSize()
.
For more information about Bicep diagnostics, see Bicep core diagnostics.