Wouldn't it be great to know if you were going to run into policy or compliance issues before you've even merged your infrastructure code into the main branch? Troubleshooting deployment issues after a PR is completed and the code is merged can get messy.
This repository contains the source code for a GitHub Action that will validate an Azure Resource Manager (ARM) template against the Azure Policy configuration at a given subscription.
The action only has two (required parameters)
subscriptionId:
description: "The subscription to evaluate the ARM template against."
required: true
templateLocation:
description: "Specify the path to the Azure Resource Manager (ARM) template."
required: true
If you're new to the template development, see:
Tags: Azure Policy, ARM templates