Skip to content

Samples#

Quick Start repository#

Template

You can clone, download, or use as a template for your own repository. This repository contains the following samples for PSRule for Azure:

  • Azure Templates — Starter Azure Resource Manager (ARM) templates and parameter files.
  • Azure Bicep — Starter Azure Bicep deployments and test files.
  • GitHub Actions — Starter workflow for checking Azure Infrastructure as Code (IaC).
  • Azure Pipelines — Starter pipelines for checking Azure Infrastructure as Code (IaC).
  • Custom rules — Example custom rules that enforce organization specific requirements.
  • PSRule options — Example options for using PSRule for Azure.

Community samples#

Custom rules and conventions#

The following sample rules and conventions for Azure are available. You can use these samples as a starting point for developing your own custom rules.

Title Description Author
Bicep Module Requires Discover and test Bicep modules based on a directory structure convention. @BernieWhite
API Management Policy Discover and test API Management .xml policy files. @BernieWhite