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

- **ID:** `policy/azure-resource-quota-exceeded-vm-cores`
- **领域:** policy
- **类别:** resource_error
- **错误码:** `QuotaExceeded`
- **验证级别:** ai_generated
- **修复率:** 75%

## 根因

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

## 版本兼容性

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

## 解决方案

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

## 无效尝试

- **** — 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. (50% 失败率)
- **** — 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. (70% 失败率)
- **** — You need to request an increase for the specific family and region you're deploying to, not a different one. (80% 失败率)
