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.
This diagnostic occurs when an invalid declaration type is found in a Bicep parameters file.
Description
This declaration type is not valid for a Bicep Parameters file. Supported declarations: "using", "extends", "param", "var", "type".
Level
Error
Solution
Use the supported declaration types for Bicep parameters files, which are: "using", "extends", "param", "var", and "type". Remove any other declaration types from the parameters file.
Examples
The following Bicep parameters file produces the error because params is not a valid declaration type in a Bicep parameters file:
using './main.bicep'
param storageName = 'mystorageacct'
params storageSKU = 'Standard_LRS'
To fix the error, change params to param:
using './main.bicep'
param storageName = 'mystorageacct'
param storageSKU = 'Standard_LRS'
Next steps
To learn more about Bicep diagnostics, see Bicep core diagnostics.