Bicep error/warning code - BCP088

This error/warning occurs when a value of a property seems to be a typo.

Error/warning 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>?

Examples

The following example raises the error 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 error 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 error and warning codes, see Bicep warnings and errors.