Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Run pre-deployment validation checks on Azure configuration, Bicep/Terraform, and permissions
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/policy-validation.md
1# Azure Policy Validation23## How to Validate Policies45### 1. Get Subscription ID67Retrieve your current Azure subscription ID:89```bash10az account show --query id -o tsv11```1213### 2. Validate Policies1415Call the Azure MCP Policy tool to retrieve policies for your subscription:1617```18mcp_azure_mcp_policy(command: "list", parameters: { subscription_id: "<subscription-id>" })19```2021Replace `<subscription-id>` with the actual subscription ID obtained from step 1.2223## Review Policy Compliance2425When validating Azure policies for your subscription:2627- **Check for policy violations** — Identify any resources or configurations that don't comply with assigned policies28- **Verify organizational compliance** — Ensure the planned deployment meets all organizational policy requirements29- **Address policy conflicts** — Resolve any policy issues before proceeding to deployment3031## Common Policy Issues3233| Issue | Resolution |34|-------|------------|35| Non-compliant resource SKUs | Update resource SKUs to comply with allowed values |36| Missing required tags | Add required tags to resources in your infrastructure code |37| Disallowed resource types | Replace with allowed alternatives or request policy exception |38| Location restrictions | Deploy to allowed regions only |39| Network security violations | Update NSG rules, firewall settings, or virtual network configurations |4041## Next Steps4243Only proceed to deployment after all policy violations are resolved and compliance is confirmed.44