Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.19 KB

File metadata and controls

55 lines (40 loc) · 1.19 KB
title BCP088
description The property <property-name> expected a value of type <type-name> but the provided value is of type <type-name>. Did you mean <type-name>?
ms.topic reference
ms.custom devx-track-bicep
ms.date 10/30/2025

Bicep diagnostic code - BCP088

This diagnostic occurs when a value of a property seems to be a typo.

Description

The property <property-name> expected a value of type <type-name> but the provided value is of type <type-name>. Did you mean <type-name>?

Level

Warning / Error

Examples

The following example raises the diagnostic because name value ad looks like a typo.

resource kv 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
  name: 'vault'
 
  resource ap 'accessPolicies' = {
    name: 'ad'
    properties: {
      accessPolicies: []
    }
  }
}

You can fix the diagnostic by correcting the typo:

resource kv 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
  name: 'vault'
 
  resource ap 'accessPolicies' = {
    name: 'add'
    properties: {
      accessPolicies: []
    }
  }
}

Next steps

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