What is PSRule for Azure?#
PSRule for Azure is a pre-built set of tests and documentation to help you configure Azure solutions. These tests allow you to check your Infrastructure as Code (IaC) before or after deployment to Azure. PSRule for Azure includes unit tests that check how Azure resources defined in ARM templates or Bicep code are configured.
Why use PSRule for Azure?#
PSRule for Azure helps you identify changes to improve the quality of solutions deployed on Azure. PSRule for Azure uses the principles of the Azure Well-Architected Framework (WAF) to:
- Suggest changes — you can use to improve the quality of your solution.
- Link to documentation — to learn how this applies to your environment.
- Demonstrate — how you can implement the change with examples. Examples are provided in Azure Bicep and ARM templates syntax.
If you want to write your own tests, you can do that too in your choice of YAML, JSON, or PowerShell. However with over 390 tests already built, you can identify and fix issues day one.
Get started with a sample repository
To get started with a sample repository, see PSRule for Azure Quick Start on GitHub.
Introducing PSRule for Azure#
An introduction to PSRule for Azure and how it relates to the Azure Well-Architected Framework. We also give an quick overview of baselines, handling exceptions, and reporting options.
Who uses PSRule for Azure?#
Several first-party repositories use PSRule for Azure. Here's a few you may be familiar with:
- Azure/ResourceModules - Common Azure Resource Modules Library
- Azure/ALZ-Bicep - Azure Landing Zones (ALZ)
- Azure/AKS-Construction - AKS Construction