Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This diagnostic occurs when you use values of different data types in a union type definition.
Type unions must be reducible to a single ARM type (such as 'string', 'int', or 'bool').
Error
The following example raises the diagnostic because there are different types used in the union type:
type foo = 'a' | 1
You can fix the diagnostic by using a single data type for the union type definition:
type foo = 'a' | 'b'
For more information about Bicep diagnostics, see Bicep core diagnostics.