Bicep error code - BCP288
This error occurs when the name specified is a type, but it's being used as a value.
Error description
<name> refers to a type but is being used as a value here.
Solution
Use a name of a value.
Examples
The following example raises the error because bar is a name of a user-defined data type, not a value:
type bar = 'white'
var foo = bar
You can fix the error by assigning a value to the variable foo:
var bar = 'white'
var foo = bar
Next steps
For more information about Bicep error and warning codes, see Bicep core diagnostics.