9 Testing ARM templates
This chapter covers
- Writing tests to validate your code
- Choosing the best test scenario for your infrastructure
- Using different tools to test and validate your templates
- Writing custom tests using Pester and PowerShell
- Running tests in your Azure DevOps pipeline
When writing software these days, it is common to also write tests. One of the main reasons for writing tests is to verify that the code works when you write it and that the code still works after making changes later on. You write tests to build confidence that a change does not negatively impact the quality of the code and that the software is ready for deployment into production.
The same applies to testing Infrastructure as Code. When you’re talking about ...
Get Azure Infrastructure as Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.