帮助你跨区域与项目查询 Azure OpenAI 容量配额并推荐最佳部署位置
该技能主要用于只读的 Azure OpenAI 容量发现与配额分析,未声明额外密钥或自定义外部端点。基于微软 GitHub 开源来源且用途明确,整体风险偏低,但会依赖 Azure CLI 身份并查询用户可访问的订阅、区域与项目数据,需留意账户范围与本地脚本执行。
材料注明认证方式为 Azure CLI(az login),虽未要求额外环境变量或 API key,但会复用用户现有 Azure 登录态与订阅权限;若本机 Azure 会话权限过大,相关查询能力也会随之扩大。
README 明确描述会执行复杂 REST API 查询,跨所有可访问区域和项目发现容量与配额,说明会将相关查询请求发送到 Azure 服务端。未见不明第三方端点,外发对象与声明功能一致,但仍属于账户数据对云端的常规传输。
文档列出可执行的 PowerShell 和 shell 脚本(如 discover_and_rank.ps1/.sh、query_capacity.ps1/.sh),并调用 az 命令与脚本处理逻辑,因此具备本机执行脚本/命令能力。这是该类技能的常规能力,未见超出用途的系统级权限申请。
其声明范围是“所有用户有权访问的区域和项目”,并会读取订阅、项目、模型版本、容量和配额相关信息用于排序分析;材料同时强调为只读、不做实际部署。未见本地文件大范围读写描述,但云侧可见性范围可能较广。
来源为微软 GitHub 开源仓库,源码可审计,且有一定社区采用(222 stars),这些都明显降低供应链风险。材料中未见闭源外传、可疑注入或无关权限申请;仅需注意许可证未声明、维护状态未知带来的轻微信息不完整性。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "capacity" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/microsoft-foundry/models/deploy-model/capacity/SKILL.md 2. 保存为 ~/.claude/skills/capacity/SKILL.md 3. 装好后重载技能,告诉我可以用了
帮我检查 GPT-4o 在哪些 Azure 区域有可用容量,列出每个区域的配额情况,并推荐最适合部署的 3 个区域。
返回各区域的容量与配额对比,并给出最优部署区域建议。
请在我的多个 Azure 项目中搜索 o3-mini 的可用容量,比较各项目和区域的 TPM 配额,并指出哪里最适合新部署。
输出跨项目与区域的容量分析,以及最合适的部署位置。
我需要至少 200K TPM 的模型容量,请分析哪些 Azure 区域能够满足需求,并说明每个候选区域的优缺点。
给出满足容量门槛的区域列表、对比分析和推荐结论。
Finds available Azure OpenAI model capacity across all accessible regions and projects. Recommends the best deployment location based on capacity requirements.
| Property | Description |
|---|---|
| Purpose | Find where you can deploy a model with sufficient capacity |
| Scope | All regions and projects the user has access to |
| Output | Ranked table of regions/projects with available capacity |
| Action | Read-only analysis — does NOT deploy. Hands off to preset or customize |
| Authentication | Azure CLI (az login) |
After discovery → hand off to preset or customize for actual deployment.
Pre-built scripts handle the complex REST API calls and data processing. Use these instead of constructing commands manually.
| Script | Purpose | Usage |
|---|---|---|
scripts/discover_and_rank.ps1 | Full discovery: capacity + projects + ranking | Primary script for capacity discovery |
scripts/discover_and_rank.sh | Same as above (bash) | Primary script for capacity discovery |
scripts/query_capacity.ps1 | Raw capacity query (no project matching) | Quick capacity check or version listing |
scripts/query_capacity.sh | Same as above (bash) | Quick capacity check or version listing |
az account show --query "{Subscription:name, SubscriptionId:id}" --output table
Extract model name from user prompt. If version is unknown, query available versions:
.\scripts\query_capacity.ps1 -ModelName <model-name>
./scripts/query_capacity.sh <model-name>
This lists available versions. Use the latest version unless user specifies otherwise.
Run the full discovery script with model name, version, and minimum capacity target:
.\scripts\discover_and_rank.ps1 -ModelName <model-name> -ModelVersion <version> -MinCapacity <target>
./scripts/discover_and_rank.sh <model-name> <version> <min-capacity>
💡 The script automatically queries capacity across ALL regions, cross-references with the user's existing projects, and outputs a ranked table sorted by: meets target → project count → available capacity.
After discovery identifies candidate regions, validate that the user's subscription actually has available quota in each region. Model capacity (from Phase 3) shows what the platform can support, but subscription quota limits what this specific user can deploy.
# For each candidate region from discovery results:
$usageData = az cognitiveservices usage list --location <region> --subscription $SUBSCRIPTION_ID -o json 2>$null | ConvertFrom-Json
# Check quota for each SKU the model supports
# Quota names follow pattern: OpenAI.<SKU>.<model-name>
$usageEntry = $usageData | Where-Object { $_.name.value -eq "OpenAI.<SKU>.<model-name>" }
if ($usageEntry) {
$quotaAvailable = $usageEntry.limit - $usageEntry.currentValue
} else {
$quotaAvailable = 0 # No quota allocated
}
# For each candidate region from discovery results:
usage_json=$(az cognitiveservices usage list --location <region> --subscription "$SUBSCRIPTION_ID" -o json 2>/dev/null)
# Extract quota for specific SKU+model
quota_available=$(echo "$usage_json" | jq -r --arg name "OpenAI.<SKU>.<model-name>" \
'.[] | select(.name.value == $name) | .limit - .currentValue')
Annotate discovery results:
…
分析并精简 Markdown 内容,降低 token 消耗并提升 AI 处理效率。
帮助你编写、审查并规范符合 agentskills.io 规范的技能文档
帮助你编写、校验并运行基于 eval.yaml 的智能体评测套件
使用 KQL 查询和分析 Azure Data Explorer 中的日志、遥测与时序数据。
智能选择 Azure OpenAI 最佳可用区域并快速完成部署
评估 AKS 集群与工作负载对 Automatic 的兼容性并提供迁移修复建议
帮助用户按意图在 Azure OpenAI 中部署模型并查询区域容量与可用性。
引导你逐步自定义 Azure OpenAI 模型部署参数与高级选项。
帮助你检查和管理 Azure 配额与用量,评估部署容量和区域可用性。
帮助你跨订阅或资源组快速查询、盘点和定位 Azure 资源。
调用 Azure AI 完成搜索、语音转写、文本转语音与 OCR 识别
帮助用户查询大模型供应商推荐、定价与服务状态信息。