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 reference a property that isn't defined in the resource type or user-defined data type.
The type <type-name> does not contain property <property-name>. Available properties include <property-names>.
Warning / Error
Reference the correct property name.
The following example raises the diagnostic because Microsoft.Storage/storageAccounts
doesn't contain a property called bar
.
param location string
resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
name: 'myStorage'
location: location
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
}
output foo string = storage.bar
You can fix the diagnostic by referencing a valid property, such as name
:
param location string
resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
name: 'myStorage'
location: location
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
}
output foo string = storage.name
For more information about Bicep diagnostics, see Bicep core diagnostics.