Setting the file. One moment.
Subchapter 28.3
references/policy-validation.mdMarkdown1 KBView on GitHub
Retrieve your current Azure subscription ID:
az account show --query id -o tsvCall the Azure MCP Policy tool to retrieve policies for your subscription:
mcp_azure_mcp_policy(command: "list", parameters: { subscription_id: "<subscription-id>" })Replace <subscription-id> with the actual subscription ID obtained from step 1.
When validating Azure policies for your subscription:
| Issue | Resolution |
|---|---|
| Non-compliant resource SKUs | Update resource SKUs to comply with allowed values |
| Missing required tags | Add required tags to resources in your infrastructure code |
| Disallowed resource types | Replace with allowed alternatives or request policy exception |
| Location restrictions | Deploy to allowed regions only |
| Network security violations | Update NSG rules, firewall settings, or virtual network configurations |
Only proceed to deployment after all policy violations are resolved and compliance is confirmed.