Bicep error/warning code - BCP077
This error/warning occurs when you reference a property that is write-only.
Error/warning description
The property <property-name> on type <type-name> is write-only. Write-only properties cannot be accessed.
Examples
The following example raises the warning because customHeaders
is a write-only property.
resource webhook 'Microsoft.ContainerRegistry/registries/webhooks@2023-07-01' existing = {
name: 'registry/webhook'
}
output customerHeaders object = webhook.properties.customHeaders
Next steps
For more information about Bicep error and warning codes, see Bicep warnings and errors.