Bicep error/warning code - BCP052

This error/warning occurs when you reference a property that isn't defined in the data type or the user-defined data type.

Error/warning description

The type <type-name> does not contain property <property-name>.

Examples

The following example raises the error object doesn't contain a property called bar:

type foo = object.bar

You can fix the error by removing the property:

type foo = object

Next steps

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