| title | BCP063 |
|---|---|
| description | The name <name> isn't a parameter, variable, resource, or module. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
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.