Preset

microsoft/skills/.github/plugins/azure-skills/skills/microsoft-foundry/models/deploy-model/preset

作者 microsoft3898ec894e90MIT3.2K 个星标收录于 2026年11月20日更新于 2026年11月20日仓库今天更新

Intelligently deploys Azure OpenAI models to optimal regions by analyzing capacity across all available regions. Automatically checks current region first and shows alternatives if needed. USE FOR: quick deployment, optimal region, best region, automatic region selection, fast setup, multi-region capacity check, high availability deployment, deploy to best location. DO NOT USE FOR: custom SKU selection (use customize), specific version selection (use customize), custom capacity configuration (use customize), PTU deployments (use customize).

精选仅含说明DevOps 与云端
AI 生成的概览

通过 Azure CLI 检查各区域容量,将 Azure OpenAI 模型部署到可用容量最佳的区域。

功能
验证 Azure 登录状态与 Foundry 项目,列出可用模型,并检查项目当前区域的 GlobalStandard 容量。若当前区域无容量,则查询所有区域、展示备选方案,并让用户选择区域与项目(必要时新建项目)。随后以唯一名称和可用配额的 50%(最低 50 TPM)创建部署并监控进度。
适用场景
适用于需要快速部署 Azure OpenAI 模型、自动选择区域、跨区域容量检查或高可用部署的场景。不适用于自定义 SKU、版本、容量或 PTU 配置。
运行要求
需安装并登录 Azure CLI,具备含 Cognitive Services 读取/创建权限的 Azure 订阅,以及 Microsoft Foundry 项目资源 ID(通过 PROJECT_RESOURCE_ID 环境变量或交互提供)。需要访问 Azure 网络;仅为说明文档,不含脚本。

Deploy Model to Optimal Region

Automates intelligent Azure OpenAI model deployment by checking capacity across regions and deploying to the best available option.

What This Skill Does

  1. Verifies Azure authentication and project scope
  2. Checks capacity in current project's region
  3. If no capacity: analyzes all regions and shows available alternatives
  4. Filters projects by selected region
  5. Supports creating new projects if needed
  6. Deploys model with GlobalStandard SKU
  7. Monitors deployment progress

Prerequisites

  • Azure CLI installed and configured
  • Active Azure subscription with Cognitive Services read/create permissions
  • Microsoft Foundry project resource ID (PROJECT_RESOURCE_ID env var or provided interactively)
    • Format: /subscriptions/{sub-id}/resourceGroups/{rg}/providers/Microsoft.CognitiveServices/accounts/{account}/projects/{project}
    • Found in: Microsoft Foundry portal → Project → Overview → Resource ID

Quick Workflow

Fast Path (Current Region Has Capacity)

1. Check authentication → 2. Get project → 3. Check current region capacity→ 4. Deploy immediately

Alternative Region Path (No Capacity)

1. Check authentication → 2. Get project → 3. Check current region (no capacity)→ 4. Query all regions → 5. Show alternatives → 6. Select region + project→ 7. Deploy

Deployment Phases

PhaseActionKey Commands
1. Verify AuthCheck Azure CLI login and subscriptionaz account show, az login
2. Get ProjectParse PROJECT_RESOURCE_ID ARM ID, verify existsaz cognitiveservices account show
3. Get ModelList available models, user selects model + versionaz cognitiveservices account list-models
4. Check Current RegionQuery capacity using GlobalStandard SKUaz rest --method GET .../modelCapacities
5. Multi-Region QueryIf no local capacity, query all regionsSame capacity API without location filter
6. Select Region + ProjectUser picks region; find or create projectaz cognitiveservices account list, az cognitiveservices account create
7. DeployGenerate unique name, calculate capacity (50% available, min 50 TPM), create deploymentaz cognitiveservices account deployment create

For detailed step-by-step instructions, see workflow reference [blocked].


Error Handling

ErrorSymptomResolution
Auth failureaz account show returns errorRun az login then az account set --subscription <id>
No quotaAll regions show 0 capacityDefer to the quota skill for increase requests and troubleshooting; check existing deployments; try alternative models
Model not foundEmpty capacity listVerify model name with az cognitiveservices account list-models; check case sensitivity
Name conflict"deployment already exists"Append suffix to deployment name (handled automatically by generate_deployment_name script)
Region unavailableRegion doesn't support modelSelect a different region from the available list
Permission denied"Forbidden" or "Unauthorized"Verify Cognitive Services Contributor role: az role assignment list --assignee <user>

Advanced Usage

bash
# Custom capacityaz cognitiveservices account deployment create ... --sku-capacity <value>
# Check deployment statusaz cognitiveservices account deployment show --name <acct> --resource-group <rg> --deployment-name <name> --query "{Status:properties.provisioningState}"
# Delete deploymentaz cognitiveservices account deployment delete --name <acct> --resource-group <rg> --deployment-name <name>

Notes

  • SKU: GlobalStandard only — API Version: 2024-10-01 (GA stable)

Related Skills

  • microsoft-foundry - Parent skill for Microsoft Foundry operations
  • quota — For quota viewing, increase requests, and troubleshooting quota errors, defer to this skill
  • azure-quick-review - Review Azure resources for compliance
  • cost-estimation - Estimate costs through the separately installed azure-cost plugin
  • azure-validate - Validate Azure infrastructure before deployment

来源与署名

来源:microsoft/skills位于.github/plugins/azure-skills/skills/microsoft-foundry/models/deploy-model/preset提交3898ec8

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

在 README 中添加徽章

向读者展示该技能已收录于 SourceWeft,徽章链接到本页。

“Listed on SourceWeft”徽章预览
[![Listed on SourceWeft](https://sourceweft.com/badge/skills/gh-microsoft-skills-preset.svg)](https://sourceweft.com/skills/gh-microsoft-skills-preset?utm_source=readme&utm_medium=badge)

举报或申请下架