{
  "id": "policy/azure-resource-location-restriction",
  "signature": "Resource 'myresource' was disallowed by policy. Policy: 'Allowed locations'. Reason: 'The resource location 'eastus2' is not allowed. Allowed locations: 'westus', 'westus2'.",
  "signature_zh": "资源 'myresource' 被策略禁止。策略：'允许的位置'。原因：资源位置 'eastus2' 不被允许。允许的位置：'westus', 'westus2'。",
  "regex": "Resource '.*' was disallowed by policy. Policy: 'Allowed locations'. Reason: 'The resource location '.*' is not allowed.",
  "domain": "policy",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "An Azure policy restricts resource deployment to specific regions, but the deployment template specifies a location outside the allowed list.",
  "root_cause_type": "generic",
  "root_cause_zh": "Azure 策略将资源部署限制在特定区域，但部署模板指定的位置不在允许列表中。",
  "versions": [
    {
      "version": "Azure Policy 2024-01-01",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "ARM API 2023-09-01",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Dependent resources might be in a different region, leading to latency or cross-region charges.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Policy is enforced by Azure administrators; disabling it requires elevated permissions and may be audited.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Azure policies are scoped to resource types and locations; changing the name does not affect the policy evaluation.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Update the ARM template or Bicep file to use an allowed location. Example: location: 'westus' instead of 'eastus2'. Then redeploy.",
      "success_rate": 0.95,
      "how": "Update the ARM template or Bicep file to use an allowed location. Example: location: 'westus' instead of 'eastus2'. Then redeploy.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Request an exception from the Azure policy administrator by opening a support ticket or using Azure Policy's exemption feature.",
      "success_rate": 0.6,
      "how": "Request an exception from the Azure policy administrator by opening a support ticket or using Azure Policy's exemption feature.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "更新 ARM 模板或 Bicep 文件以使用允许的位置。示例：location: 'westus' 而不是 'eastus2'。然后重新部署。",
    "通过提交支持工单或使用 Azure Policy 的豁免功能，向 Azure 策略管理员请求例外。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2024-02-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}