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 have a decorator but there is no declaration following it.
Description
Expected a declaration after the decorator.
Level
Error
Solutions
Add the proper type declarations after the decorator.
Examples
The following example raises the diagnostic because there are no declarations after the decorator.
@description()
You can fix the diagnostic by removing the decorator or adding the declaration after the decorator.
@description('Declare a existing storage account.')
resource store 'Microsoft.Storage/storageAccounts@2023-05-01' existing = {
name: 'mystore'
}
For a list of valid decorators, see Decorators.
Next steps
For more information about Bicep diagnostics, see Bicep core diagnostics.