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 the system tries to locate a name within the context, but no matching name is found.
The name <name> isn't a parameter, variable, resource, or module.
Error
Use the property declaration types. For more information, see Bicep file.
The following example raises the diagnostic because @metadata is not a correct declaration type:
@metadata
resource store 'Microsoft.Storage/storageAccounts@2023-05-01' existing = {
name: 'mystore'
}
You can fix the diagnostic by properly declaring metadata
.
metadata description = 'create a storage account'
resource store 'Microsoft.Storage/storageAccounts@2023-05-01' existing = {
name: 'mystore'
}
For more information, see Metadata.
For more information about Bicep diagnostics, see Bicep core diagnostics.