| name | bicep-validator |
| description | Validate Bicep modules and parameter files. Use for PR checks, CI validation, or manual validation of generated modules; keywords: bicep, bicepparam, validate, PR, CI, bicepconfig |
Bicep Validator
Summary: Validate Bicep modules and parameter files using Azure CLI. Use this Skill on PRs touching *.bicep / *.bicepparam or manually: Validate the bicep file at path X.
Validation Commands
For Bicep Modules (.bicep)
az bicep build --file <path-to-file.bicep>
Validates:
- Syntax errors
- Type mismatches
- Invalid resource references
- Missing required properties
- Linter warnings (unused params, deprecated APIs, best practices)
For Bicep Parameter Files (.bicepparam)
az bicep build-params --file <path-to-file.bicepparam>
Validates:
- Parameter file syntax (using statement, param declarations)
- Object property syntax (must use
: not = in objects)
- Type compatibility with target Bicep module
- Parameter name matching
Common Issues
Bicep Modules
- BCP036: Type mismatch (e.g., wrong SKU name format)
- BCP037: Unknown property name
- BCP073: Missing required property
- no-unused-params: Parameter declared but never used
Parameter Files
- BCP018: Expected
: character (object properties must use colons)
- BCP009: Expected literal value (syntax error in parameter value)