Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.22 KB

File metadata and controls

47 lines (30 loc) · 1.22 KB
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

Bicep diagnostic code - BCP337

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.