customize

作者: microsoft

針對Azure OpenAI模型的互動式引導部署流程,提供完整的自訂控制。逐步選擇模型版本、SKU…

npx skills add https://github.com/microsoft/skills --skill customize

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

PropertyDescription
FlowInteractive step-by-step guided deployment
CustomizationVersion, SKU, Capacity, RAI Policy, Advanced Options
SKU SupportGlobalStandard, Standard, ProvisionedManaged, DataZoneStandard
Best ForPrecise control over deployment configuration
AuthenticationAzure CLI (az login)
ToolsAzure 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

Featurecustomizepreset
FocusFull customization controlOptimal region selection
Version SelectionUser chooses from availableUses latest automatically
SKU SelectionUser chooses (GlobalStandard/Standard/PTU)GlobalStandard only
CapacityUser specifies exact valueAuto-calculated (50% of available)
RAI PolicyUser selects from optionsDefault policy only
RegionCurrent region first, falls back to all regions if no capacityChecks capacity across all regions upfront
Use CasePrecise deployment requirementsQuick 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).

PhaseActionKey Details
1. Verify AuthCheck az account show; prompt az login if neededVerify correct subscription is active
2. Get Project IDRead PROJECT_RESOURCE_ID env var or prompt userARM resource ID format required
3. Verify ProjectParse resource ID, call az cognitiveservices account showExtracts subscription, RG, account, project, region
4. Get ModelList models via az cognitiveservices account list-modelsUser selects from available or enters custom name
5. Select VersionQuery versions for chosen modelRecommend latest; user picks from list
6. Select SKUQuery model catalog + subscription quota, show only deployable SKUs⚠️ Never hardcode SKU lists — always query live data
7. Configure CapacityQuery capacity API, validate min/max/step, user enters valueCross-region fallback if no capacity in current region
8. Select RAI PolicyPresent content filter optionsDefault: Microsoft.DefaultV2
9. Advanced OptionsDynamic quota (GlobalStandard), priority processing (PTU), spilloverSKU-dependent availability
10. Upgrade PolicyChoose: OnceNewDefaultVersionAvailable / OnceCurrentVersionExpired / NoAutoUpgradeDefault: auto-upgrade on new default
11. Deployment NameAuto-generate unique name, allow custom overrideValidates format: ^[\w.-]{2,64}$
12. ReviewDisplay full config summary, confirm before proceedingUser approves or cancels
13. Deploy & Monitoraz cognitiveservices account deployment create, poll statusTimeout after 5 min; show endpoint + portal link

Error Handling

Common Issues and Resolutions

ErrorCauseResolution
Model not foundInvalid model nameList available models with az cognitiveservices account list-models
Version not availableVersion not supported for SKUSelect different version or SKU
Insufficient quotaCapacity > available quotaSkill auto-searches all regions; fails only if no region has quota
SKU not supportedSKU not available in regionCross-region fallback searches other regions automatically
Capacity out of rangeInvalid capacity valuePREVENTED: Skill validates min/max/step at input (Phase 7)
Deployment name existsName conflictAuto-incremented name generation
Authentication failedNot logged inRun az login
Permission deniedInsufficient permissionsAssign Cognitive Services Contributor role
Capacity query failsAPI/permissions/network errorDEPLOYMENT 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

來自 microsoft 的更多技能

oss-growth
microsoft
開源增長駭客角色
agent-framework-azure-ai-py
microsoft
使用Microsoft Agent Framework Python SDK(agent-framework-azure-ai)构建Azure AI Foundry代理。适用于使用AzureAIAgentsProvider创建持久化代理、使用托管工具(代码解释器、文件搜索、网络搜索)、集成MCP服务器、管理对话线程或实现流式响应。涵盖函数工具、结构化输出和多工具代理。
development
airunway-aks-setup
microsoft
在AKS上設定AI Runway——從裸叢集到執行模型。涵蓋叢集驗證、控制器安裝、GPU評估、供應商設定及首次部署。時機:「設定AI Runway」、「上線AKS叢集」、「安裝AI Runway」、「airunway設定」、「部署模型至AKS」、「在AKS上進行GPU推論」、「在AKS上設定KAITO」、「在AKS上執行LLM」、「在AKS上使用vLLM」、「在AKS上設定模型服務」、「AI Runway控制器」。
devops
appinsights-instrumentation
microsoft
使用Azure Application Insights檢測Web應用程式的指南。提供遙測模式、SDK設定與組態參考。適用時機:如何檢測應用程式、App Insights SDK、遙測模式、什麼是App Insights、Application Insights指南、檢測範例、APM最佳實踐。
devops
applicationinsights-web-ts
microsoft
使用Application Insights JavaScript SDK(@microsoft/applicationinsights-web)為瀏覽器/Web應用程式進行檢測。適用於真實使用者監控(RUM)——頁面檢視、點擊、AJAX/fetch依賴、例外、自訂事件,以及與後端OpenTelemetry追蹤關聯的瀏覽器端GenAI代理追蹤。涵蓋SDK載入器指令碼與npm設定、框架擴充(React、React Native、Angular)、點擊分析、遙測初始化器,以及從瀏覽器發出的代理/工具/模型span的OTel GenAI語意慣例。
devops
azure-ai-anomalydetector-java
microsoft
使用適用於 Java 的 Azure AI 異常偵測器 SDK 建置異常偵測應用程式。在實作單變量/多變量異常偵測、時間序列分析或 AI 驅動監控時使用。
development
azure-ai-language-conversations-py
microsoft
使用 azure-ai-language-conversations Python SDK 實作對話語言理解(CLU)。當使用 ConversationAnalysisClient 分析對話意圖與實體、建置 NLP 功能,或將語言理解整合至應用程式時使用。
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python。用於機器學習工作區、作業、模型、資料集、計算資源與管線。 觸發詞:「azure-ai-ml」、「MLClient」、「workspace」、「model registry」、「training jobs」、「datasets」。
development