Bicep error code - BCP132

This error occurs when you have a decorator but there is no declaration following it.

Error description

Expected a declaration after the decorator.

Solutions

Add the proper type declarations after the decorator.

Examples

The following example raises the error because there are no declarations after the decorator.

@description()

You can fix the error 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 error and warning codes, see Bicep core diagnostics.