Member-only story
Use ARM Template Test Toolkit (ARM-TTK)
The Azure Resource Manager (ARM) Template Test Toolkit (ARM-TTK) is a powerful tool designed to validate ARM templates against recommended practices. By running this toolkit, you can identify potential issues, improve compliance with Azure standards, and optimize template quality. This article explains how to install and use ARM-TTK, interpret results, and integrate it into your CI/CD pipelines.
What is ARM-TTK?
The ARM Template Test Toolkit is a collection of PowerShell scripts that check ARM templates, parameter files, and UI definition files (createUiDefinition.json
) for compliance with best practices. These tests provide warnings, errors, and recommendations, enabling developers to:
- Ensure the quality of their ARM templates.
- Improve maintainability and reduce deployment errors.
- Achieve faster Azure Marketplace approvals.
Key Features:
- Customizable tests: Add or remove specific tests based on your requirements.
- Comprehensive testing: Evaluate templates, parameters, and UI definitions.
- CI/CD integration: Automate testing as part of your deployment pipeline.
Installing ARM-TTK
Install on Windows:
- Prerequisites:
- Install PowerShell if not already installed.