Member-only story

Use ARM Template Test Toolkit

Luca Berton
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

  1. Install PowerShell (if not already installed).
  2. Download the latest toolkit .zip file and extract it.
  3. Open PowerShell and navigate to the arm-ttk folder inside the extracted directory.
  4. Unblock the scripts:
Get-ChildItem *.ps1, *.psd1, *.ps1xml, *.psm1 -Recurse | Unblock-File
  1. Import the module:
Import-Module .\arm-ttk.psd1
  1. Run tests:
Test-AzTemplate -TemplatePath \path\to\template

On Linux

  1. Install PowerShell for Linux:
sudo snap install powershell --classic
  1. Download and extract the toolkit.
  2. Open PowerShell:

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet