Bicep error/warning code - BCP083

This error/warning occurs when you reference a property of a type that appears to be a typo.

Error/warning description

The type <type-definition> does not contain property <property-name>. Did you mean <property-name>?

Examples

The following example raises the error because foo.type1 looks like a typo.

type foo = {
  type: string
}

type bar = foo.type1

You can fix the error by correcting the typo:

type foo = {
  type: string
}

type bar = foo.type

Next steps

For more information about Bicep error and warning codes, see Bicep warnings and errors.