| title | BCP337 |
|---|---|
| description | This declaration type is not valid for a Bicep Parameters file. Supported declarations - "using", "extends", "param", "var", "type". |
| ms.topic | reference |
| ms.date | 12/03/2025 |
| ms.custom | devx-track-bicep |
This diagnostic occurs when an invalid declaration type is found in a Bicep parameters file.
This declaration type is not valid for a Bicep Parameters file. Supported declarations: "using", "extends", "param", "var", "type".
Error
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.
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'To learn more about Bicep diagnostics, see Bicep core diagnostics.