Member-only story
Use ARM Template Test Toolkit
3 min readDec 31, 2024
Overview
The Azure Resource Manager (ARM) template test toolkit is a powerful tool designed to validate your templates against recommended best practices. By identifying potential issues, the toolkit helps you avoid common problems during development and streamlines deployments. This article explores how to install, use, and customize the ARM template test toolkit to meet your project needs.
Install the Toolkit
On Windows
- Install PowerShell (if not already installed).
- Download the latest toolkit
.zip
file and extract it. - Open PowerShell and navigate to the
arm-ttk
folder inside the extracted directory. - Unblock the scripts:
Get-ChildItem *.ps1, *.psd1, *.ps1xml, *.psm1 -Recurse | Unblock-File
- Import the module:
Import-Module .\arm-ttk.psd1
- Run tests:
Test-AzTemplate -TemplatePath \path\to\template
On Linux
- Install PowerShell for Linux:
sudo snap install powershell --classic
- Download and extract the toolkit.
- Open PowerShell: