Bicep error code - BCP007
This error occurs when the declaration type isn't recognized. For a list of declaration types, see Understand the structure and syntax of Bicep files.
Error description
This declaration type isn't recognized. Specify a metadata, parameter, variable, resource, or output declaration.
Solution
Use the correct declaration type. For more information, see Bicep file.
Examples
The following example raises the error because parameter
isn't a correct declaration type:
parameter name string
You can fix the error by using the correct declaration type, param
.
param name string
For more information, see Parameters.
Next steps
For more information about Bicep error and warning codes, see Bicep core diagnostics.