Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 899 Bytes

File metadata and controls

35 lines (23 loc) · 899 Bytes
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

Bicep diagnostic code - BCP077

This diagnostic occurs when you reference a property that is write-only.

Description

The property <property-name> on type <type-name> is write-only. Write-only properties cannot be accessed.

Level

Warning / Error

Examples

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.customHeaders

Next steps

For more information about Bicep diagnostics, see Bicep core diagnostics.