AGENT SKILL

Azure OpenAI模型自定义部署

customize

Azure OpenAI模型的交互式引导部署流程,提供完全自定义控制。逐步选择模型版本、SKU(GlobalStandard/Standard/ProvisionedManaged)、容量、RAI策略(内容过滤器)以及高级选项(动态配额、优先处理、溢出)。适用于:自定义部署、自定义模型部署、选择版本、选择SKU、设置容量、配置内容过滤器、RAI策略、部署选项、详细部署、高级部署、PTU部署、预置吞吐量。不适用于:快速部署到最佳区域(请使用 preset)。

适用职业AI 工程师
License 许可
MIT
最近更新
2026-11-14
Stars
★ 1.6k
Forks
267

01 前言 Front Matter

name
customize
license
MIT
metadata
{ "author": "Microsoft", "version": "1.0.1" }
description
Interactive guided deployment flow for Azure OpenAI models with full customization control. Step-by-step selection of model version, SKU (GlobalStandard/Standard/ProvisionedManaged), capacity, RAI policy (content filter), and advanced options (dynamic quota, priority processing, spillover). USE FOR: custom deployment, customize model deployment, choose version, select SKU, set capacity, configure content filter, RAI policy, deployment options, detailed deployment, advanced deployment, PTU deployment, provisioned throughput. DO NOT USE FOR: quick deployment to optimal region (use preset).

02 资源文件 3

03 SKILL.md 正文

Customize Model Deployment

Interactive guided workflow for deploying Azure OpenAI models with full customization control over version, SKU, capacity, content filtering, and advanced options.

Quick Reference

Property Description
Flow Interactive step-by-step guided deployment
Customization Version, SKU, Capacity, RAI Policy, Advanced Options
SKU Support GlobalStandard, Standard, ProvisionedManaged, DataZoneStandard
Best For Precise control over deployment configuration
Authentication Azure CLI (az login)
Tools Azure CLI, MCP tools (optional)

When to Use This Skill

Use this skill when you need precise control over deployment configuration:

  • ✅ Choose specific model version (not just latest)
  • ✅ Select deployment SKU (GlobalStandard vs Standard vs PTU)
  • ✅ Set exact capacity within available range
  • ✅ Configure content filtering (RAI policy selection)
  • ✅ Enable advanced features (dynamic quota, priority processing, spillover)
  • ✅ PTU deployments (Provisioned Throughput Units)

Alternative: Use preset for quick deployment to the best available region with automatic configuration.

Comparison: customize vs preset

Feature customize preset
Focus Full customization control Optimal region selection
Version Selection User chooses from available Uses latest automatically
SKU Selection User chooses (GlobalStandard/Standard/PTU) GlobalStandard only
Capacity User specifies exact value Auto-calculated (50% of available)
RAI Policy User selects from options Default policy only
Region Current region first, falls back to all regions if no capacity Checks capacity across all regions upfront
Use Case Precise deployment requirements Quick deployment to best region

Prerequisites

  • Azure subscription with Cognitive Services Contributor or Owner role
  • Microsoft Foundry project resource ID (format: /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.CognitiveServices/accounts/{account}/projects/{project})
  • Azure CLI installed and authenticated (az login)
  • Optional: Set PROJECT_RESOURCE_ID environment variable

Workflow Overview

Complete Flow (14 Phases)

1. Verify Authentication
2. Get Project Resource ID
3. Verify Project Exists
4. Get Model Name (if not provided)
5. List Model Versions → User Selects
6. List SKUs for Version → User Selects
7. Get Capacity Range → User Configures
   7b. If no capacity: Cross-Region Fallback → Query all regions → User selects region/project
8. List RAI Policies → User Selects
9. Configure Advanced Options (if applicable)
10. Configure Version Upgrade Policy
11. Generate Deployment Name
12. Review Configuration
13. Execute Deployment & Monitor

Fast Path (Defaults)

If user accepts all defaults (latest version, GlobalStandard SKU, recommended capacity, default RAI policy, standard upgrade policy), deployment completes in ~5 interactions.


Phase Summaries

⚠️ MUST READ: Before executing any phase, load references/customize-workflow.md for the full scripts and implementation details. The summaries below describe what each phase does — the reference file contains the how (CLI commands, quota patterns, capacity formulas, cross-region fallback logic).

Phase Action Key Details
1. Verify Auth Check az account show; prompt az login if needed Verify correct subscription is active
2. Get Project ID Read PROJECT_RESOURCE_ID env var or prompt user ARM resource ID format required
3. Verify Project Parse resource ID, call az cognitiveservices account show Extracts subscription, RG, account, project, region
4. Get Model List models via az cognitiveservices account list-models User selects from available or enters custom name
5. Select Version Query versions for chosen model Recommend latest; user picks from list
6. Select SKU Query model catalog + subscription quota, show only deployable SKUs ⚠️ Never hardcode SKU lists — always query live data
7. Configure Capacity Query capacity API, validate min/max/step, user enters value Cross-region fallback if no capacity in current region
8. Select RAI Policy Present content filter options Default: Microsoft.DefaultV2
9. Advanced Options Dynamic quota (GlobalStandard), priority processing (PTU), spillover SKU-dependent availability
10. Upgrade Policy Choose: OnceNewDefaultVersionAvailable / OnceCurrentVersionExpired / NoAutoUpgrade Default: auto-upgrade on new default
11. Deployment Name Auto-generate unique name, allow custom override Validates format: ^[\w.-]{2,64}$
12. Review Display full config summary, confirm before proceeding User approves or cancels
13. Deploy & Monitor az cognitiveservices account deployment create, poll status Timeout after 5 min; show endpoint + portal link

Error Handling

Common Issues and Resolutions

Error Cause Resolution
Model not found Invalid model name List available models with az cognitiveservices account list-models
Version not available Version not supported for SKU Select different version or SKU
Insufficient quota Capacity > available quota Skill auto-searches all regions; fails only if no region has quota
SKU not supported SKU not available in region Cross-region fallback searches other regions automatically
Capacity out of range Invalid capacity value PREVENTED: Skill validates min/max/step at input (Phase 7)
Deployment name exists Name conflict Auto-incremented name generation
Authentication failed Not logged in Run az login
Permission denied Insufficient permissions Assign Cognitive Services Contributor role
Capacity query fails API/permissions/network error DEPLOYMENT BLOCKED: Will not proceed without valid quota data

Troubleshooting Commands

# Check deployment status
az cognitiveservices account deployment show --name <account> --resource-group <rg> --deployment-name <name>

# List all deployments
az cognitiveservices account deployment list --name <account> --resource-group <rg> -o table

# Check quota usage
az cognitiveservices usage list --name <account> --resource-group <rg>

# Delete failed deployment
az cognitiveservices account deployment delete --name <account> --resource-group <rg> --deployment-name <name>

Selection Guides & Advanced Topics

For SKU comparison tables, PTU sizing formulas, and advanced option details, load references/customize-guides.md.

SKU selection: GlobalStandard (production/HA) → Standard (dev/test) → ProvisionedManaged (high-volume/guaranteed throughput) → DataZoneStandard (data residency).

Capacity: TPM-based SKUs range from 1K (dev) to 100K+ (large production). PTU-based use formula: (Input TPM × 0.001) + (Output TPM × 0.002) + (Requests/min × 0.1).

Advanced options: Dynamic quota (GlobalStandard only), priority processing (PTU only, extra cost), spillover (overflow to backup deployment).


Related Skills

  • preset - Quick deployment to best region with automatic configuration
  • microsoft-foundry - Parent skill for all Microsoft Foundry operations
  • quota — For quota viewing, increase requests, and troubleshooting quota errors, defer to this skill instead of duplicating guidance
  • rbac - Manage permissions and access control

Notes

  • Set PROJECT_RESOURCE_ID environment variable to skip prompt
  • Not all SKUs available in all regions; capacity varies by subscription/region/model
  • Custom RAI policies can be configured in Azure Portal
  • Automatic version upgrades occur during maintenance windows
  • Use Azure Monitor and Application Insights for production deployments

04 同仓库更多 Skills

microsoft
microsoft/azure-skills

azure-advisor-cost-optimization

Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: "find unused Azure resources", "what resources am I paying for but no longer using", "idle-resource savings", "historical idle-resource savings", "are these idle resources safe to delete". Generic Cost, other subcategories, and cross-category requests use azure-advisor.

★ 1.6k
microsoft
microsoft/azure-skills

Python应用Azure App Service部署

python-appservice-deploy

将Python(Flask/Django/FastAPI)代码部署到Azure App Service Linux。适用场景:"Flask App Service"、"Django App Service"、"FastAPI App Service"、"将Python部署到App Service"。不适用于:Container Apps、Functions、非Python、Terraform/Bicep/IaC、完整基础设施——请使用 azure-prepare。

软件开发工程师部署与发布管理
★ 1.6k
microsoft
microsoft/azure-skills

Azure OpenAI模型最佳区域部署

preset

通过分析所有可用区域的容量,智能地将Azure OpenAI模型部署到最佳区域。自动先检查当前区域,并在必要时显示备选方案。适用于:快速部署、最佳区域、最优区域、自动区域选择、快速设置、多区域容量检查、高可用部署、部署到最佳位置。不适用于:自定义SKU选择(请使用 customize)、特定版本选择(请使用 customize)、自定义容量配置(请使用 customize)、PTU部署(请使用 customize)。

AI 工程师AI 平台资源管理
★ 1.6k
microsoft
microsoft/azure-skills

Azure OpenAI容量查询

capacity

发现跨区域和项目的可用 Azure OpenAI 模型容量。分析配额限制、比较可用性,并根据容量需求推荐最佳部署位置。USE FOR:查找容量、检查配额、可以在哪里部署、容量发现、容量最佳区域、多项目容量搜索、配额分析、模型可用性、区域比较、检查 TPM 可用性。DO NOT USE FOR:实际部署(发现后转交给预设或自定义技能)、配额提升请求(引导用户前往 Azure 门户)、列出现有部署。

AI 工程师AI 平台资源管理
★ 1.6k
microsoft
microsoft/azure-skills

Azure OpenAI模型部署

deploy-model

统一的 Azure OpenAI 模型部署技能,具备基于意图的智能路由。处理快速预设部署、完全自定义部署(版本/SKU/容量/RAI 策略)以及跨区域和项目的容量发现。USE FOR:部署模型、部署 gpt、创建部署、模型部署、部署 openai 模型、设置模型、配置模型、查找容量、检查模型可用性、可以在哪里部署、模型最佳区域、容量分析。DO NOT USE FOR:列出现有部署(使用 foundry_models_deployments_list MCP 工具)、删除部署、创建智能体(使用 agent/create)、创建项目(使用 project/create)。

AI 工程师AI 平台资源管理
★ 1.6k
microsoft
microsoft/azure-skills

Foundry 模型微调训练

finetuning

使用 SFT(监督式微调)、DPO(偏好优化)或 RFT(带评分器的强化学习)在 Microsoft Foundry 上微调模型。涵盖数据集准备、训练作业提交、部署与评估。适用于:微调、SFT、DPO、RFT、训练数据、评分器(grader)、蒸馏、微调模型、训练作业、大文件上传、校准评分器、部署微调模型、评估微调模型。不适用于:不涉及微调的通用模型部署(使用 deploy-model)、智能体创建(使用 agents)、不涉及训练的提示词优化(使用 prompt-optimizer)。

AI 工程师AI 平台资源管理
★ 1.6k