📜
CloudVisionPOLICY0 / 7
Create Policy Definition
az policy definition create writes a custom policy rule. The rule has two parts: a if condition (what to evaluate) and a then effect (what to do — deny, audit, append, modify, deployIfNotExists). This one denies any resource created without a required tag.
⚡Goal: Create the require-cost-center-tag policy definition
az@cloudvision:~/policy
Azure Policy environment ready. Every az command updates the diagram →
$
📜
Run policy definition create to begin