Bicep error code - BCP018
This error occurs when a character, such as a bracket, is missing.
Error description
Expected the <character> character at this location.
Solution
Add the missing character.
Examples
The following example raises the error because the code is missing a }.
output tennisBall object = {
type: 'tennis'
color: 'yellow'
You can fix the error by adding the missing }.
output tennisBall object = {
type: 'tennis'
color: 'yellow'
}
For more information, see Objects
The following example raises the error because the code is missing a ].
output colors array = [
'red'
'blue'
'white'
You can fix the error by adding the missing ].
output colors array = [
'red'
'blue'
'white'
]
For more information, see Arrays.
The following example raises the error because the code is missing =
and the assigned value.
output month int
You can fix the error by completing the output declaration.
output month int = 3
For more information, see Outputs.
Next steps
For more information about Bicep error and warning codes, see Bicep core diagnostics.