| title | BCP077 |
|---|---|
| description | The property <property-name> on type <type-name> is write-only. Write-only properties cannot be accessed. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic occurs when you reference a property that is write-only.
The property <property-name> on type <type-name> is write-only. Write-only properties cannot be accessed.
Warning / Error
The following example raises the diagnostic 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.customHeadersFor more information about Bicep diagnostics, see Bicep core diagnostics.