azureblog.co.uk
← cd ~/tools
// tools/policy-tester

Azure Policy tester

Paste a policy definition and a resource's JSON. The tool evaluates the if conditions the way Azure Policy does, tells you whether the resource would be denied, audited or changed, shows which condition decided, and explains the whole rule in plain English.

Runs entirely in your browser. Nothing you paste is sent anywhere.

What it supports

Aliases are matched to the resource's properties by name, which works for the vast majority of aliases but isn't Azure's alias catalogue. auditIfNotExists and deployIfNotExists also check related resources, which this tool can't see. Before assigning a policy, test it with enforcement mode set to doNotEnforce.