Bicep error code - BCP055

This error occurs when you reference a nonexistent property of a type.

Error description

Cannot access properties of type <type-name>. A <type-name> type is required.

Examples

The following example raises the error because string.bar isn't defined:

type foo = string.bar

You can fix the error by removing the reference:

type foo = string

Next steps

For more information about Bicep error and warning codes, see Bicep core diagnostics.