Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 813 Bytes

linter-rule-max-asserts.md

File metadata and controls

28 lines (18 loc) · 813 Bytes
title description ms.topic ms.custom ms.date
Linter rule - max asserts
Linter rule - max asserts.
reference
devx-track-bicep
03/20/2024

Linter rule - max asserts

This rule checks that the number of predeployment conditions doesn't exceed 32.

Linter rule code

Use the following value in the Bicep configuration file to customize rule settings:

max-asserts

Warning

This rule is intended used in tandem with testFramework experimental feature flag for expected functionality. For more information, see Bicep Experimental Test Framework.

Solution

Reduce the number of predeployment conditions in your template.

Next steps

For more information about the linter, see Use Bicep linter.