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.
In Bicep, arrays or objects can be declared on a single line or across multiple lines. In single-line declarations, values are separated by commas (,), while in multi-line declarations, commas aren't used. You can combine single-line and multi-line styles, but each element must be separated by no more than one comma or one set of new lines. This diagnostic occurs when this rule isn't followed. For more information, see Arrays or Objects.
Unexpected new line character after a comma.
Error
Remove Use a name of a value.
The following example raises the diagnostic because a comma and a new line are used in between 'def' and 'ghi':
var mixedArray = ['abc', 'def',
'ghi']
You can fix the diagnostic by removing either the comma or the new line:
var mixedArray = ['abc', 'def'
'ghi']
var mixedArray = ['abc', 'def', 'ghi']
For more information about Bicep diagnostics, see Bicep core diagnostics.