AGENT SKILL

preset

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).

使用场景运维与部署
License 许可
MIT
最近更新
2026-11-13
Stars
★ 7
Forks
4

01 前言 Front Matter

name
preset
license
MIT
metadata
{ "author": "Microsoft", "version": "1.0.1" }
description
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).

02 资源文件 6

03 SKILL.md 正文

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

Phase Action Key Commands
1. Verify Auth Check Azure CLI login and subscription az account show, az login
2. Get Project Parse PROJECT_RESOURCE_ID ARM ID, verify exists az cognitiveservices account show
3. Get Model List available models, user selects model + version az cognitiveservices account list-models
4. Check Current Region Query capacity using GlobalStandard SKU az rest --method GET .../modelCapacities
5. Multi-Region Query If no local capacity, query all regions Same capacity API without location filter
6. Select Region + Project User picks region; find or create project az cognitiveservices account list, az cognitiveservices account create
7. Deploy Generate unique name, calculate capacity (50% available, min 50 TPM), create deployment az cognitiveservices account deployment create

For detailed step-by-step instructions, see workflow reference.


Error Handling

Error Symptom Resolution
Auth failure az account show returns error Run az login then az account set --subscription <id>
No quota All regions show 0 capacity Defer to the quota skill for increase requests and troubleshooting; check existing deployments; try alternative models
Model not found Empty capacity list Verify 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 unavailable Region doesn't support model Select 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

# Custom capacity
az cognitiveservices account deployment create ... --sku-capacity <value>

# Check deployment status
az cognitiveservices account deployment show --name <acct> --resource-group <rg> --deployment-name <name> --query "{Status:properties.provisioningState}"

# Delete deployment
az 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

04 同仓库更多 Skills

microsoft
microsoft/frontier-agentic-cobuild-rvas

idea-forge

Research a customer's business, industry, and publicly stated priorities on the web when the team needs AI opportunity ideas. Propose internal and external ideas by complexity and prepare a selected idea's unapproved brief for AI Agent Creator.

资料检索与研究
★ 7
microsoft
microsoft/frontier-agentic-cobuild-rvas

cloud-architecture-diagram

Create, edit, or review Azure and Microsoft ecosystem architecture, GitHub CI/CD, and auth/API diagrams as editable draw.io files; resolve Microsoft and GitHub icons. Use for architecture visualization, diagram critique, or missing icons. Azure DevOps only when explicitly requested. Not for competing-cloud architecture, deployment, live discovery, security certification, or unrelated charts.

后端与接口Skill与智能体开发
★ 7
microsoft
microsoft/frontier-agentic-cobuild-rvas

ai-agent-creator

Architecture-first Microsoft-cloud AI design for new applications, platform-managed agents, or AI capabilities in existing systems. Use when discovery, a functional/technical specification, editable draw.io views, AI token and platform-consumption estimates, cost scenarios, and an implementation plan must precede code. Produces a mandatory cost-estimate.md for every confirmed architecture. Offers an optional wireframe prototype after package completion, then hands off; standalone SDK help, existing-agent operations, implementation, deployment, and troubleshooting use other workflows.

Skill与智能体开发
★ 7
microsoft
microsoft/frontier-agentic-cobuild-rvas

impeccable

Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.

设计师前端开发视觉设计
★ 7
microsoft
microsoft/frontier-agentic-cobuild-rvas

foundry-workflows

Multi-agent orchestration in Microsoft Foundry — declarative workflow vs A2A tool call vs Connected Agents pattern; Microsoft Agent Framework (MAF) patterns including Magentic manager/planner. Use when adapting a scenario to multi-agent orchestration.

★ 7
microsoft
microsoft/frontier-agentic-cobuild-rvas

foundry-toolboxes

Curate intent-based Microsoft Foundry Toolboxes (preview) — one MCP-compatible endpoint bundling MCP, Web Search, Azure AI Search, Code Interpreter, File Search, OpenAPI, A2A, Browser Automation, and Computer Use tools. Use when a scenario needs a toolbox integration.

Skill与智能体开发
★ 7