Edit

Share via


Bicep diagnostic code - BCP009

This diagnostic occurs when a declaration is not completed.

Description

Expected a literal value, an array, an object, a parenthesized expression, or a function call at this ___location.

Level

Error

Solution

Include the missing part. For more information, see Bicep file.

Examples

The following example raises the diagnostic because the metadata declaration isn't completed:

metadata description = 

You can fix the diagnostic by using completing the declaration.

metadata description = 'Creates a storage account and a web app'

For more information, see Metadata.

Next steps

For more information about Bicep diagnostics, see Bicep core diagnostics.