Back to Trivy

Azure ARM Template

docs/guide/coverage/iac/azure-arm.md

0.74.01.2 KB
Original Source

Azure ARM Template

Trivy supports the scanners listed in the table below.

ScannerSupported
Misconfiguration
Secret

It supports the following configurations:

FormatSupported
ARM template
Bicep1

To scan Bicep codes, you need to convert them into ARM templates first.

az bicep build -f main.bicep
or
bicep build main.bicep

Misconfiguration

Trivy recursively searches directories and scans all found Azure ARM templates.

!!! note ARM template expressions (e.g. [parameters('name')], [concat(...)]) are not evaluated. A property whose value is an expression is treated as if it were not set, so checks may produce inaccurate results for such properties. This is especially relevant for templates built from Bicep, where expressions are common.

Secret

The secret scan is performed on plain text files, with no special treatment for Azure ARM templates.

Footnotes

  1. Bicep is not natively supported. It needs to be converted into Azure ARM templates.