Bicep error code - BCP294
This error occurs when you use values of different data types in a union type definition.
Error description
Type unions must be reducible to a single ARM type (such as 'string', 'int', or 'bool').
Examples
The following example raises the error because there are different types used in the union type:
type foo = 'a' | 1
You can fix the error by using a single data type for the union type definition:
type foo = 'a' | 'b'
Next steps
For more information about Bicep error and warning codes, see Bicep core diagnostics.