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'
}

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'
]

Next steps

For more information about Bicep error and warning codes, see Bicep core diagnostics.