QuotaExceeded policy resource_error ai_generated partial

错误:配额指标'标准DSv3系列vCPU'已超出限额。限制:10,使用量:10,请求量:2。

Error: Quota exceeded for quota metric: Standard DSv3 Family vCPUs. Limit: 10, Usage: 10, Requested: 2.

ID: policy/azure-resource-quota-exceeded-vm-cores

其他格式: JSON · Markdown 中文 · English
75%修复率
87%置信度
1证据数
2024-01-20首次发现

版本兼容性

版本状态引入弃用备注
Azure Resource Manager API 2023-07-01 active
Azure CLI 2.50.0 active
Terraform azurerm 3.70.0 active

根因分析

Azure 对每个VM系列实施区域vCPU配额;尝试部署超出可用配额的VM会失败。

English

Azure enforces regional vCPU quotas per VM family; attempting to deploy a VM that exceeds the available quota fails.

generic

官方文档

https://learn.microsoft.com/en-us/azure/quotas/regional-quota-requests

解决方案

  1. 通过Azure门户提交配额增加请求:转到订阅 > 使用量+配额 > 选择VM系列 > 请求增加。例如:为Standard DSv3系列请求20个vCPU。
  2. 使用`az vm create --location <region>`部署到有可用配额的其他区域。
  3. 如果适用,使用Azure Spot VM,它们使用独立的配额池。

无效尝试

常见但无效的做法:

  1. 50% 失败

    Deleting VMs frees quota but may cause downtime; also, the quota limit is per region and family, so deletion only helps if you're at the cap.

  2. 70% 失败

    The quota is per VM family (e.g., DSv3), not per size; all sizes in the family consume the same vCPU count as their specification.

  3. 80% 失败

    You need to request an increase for the specific family and region you're deploying to, not a different one.