Deploy Model
MicrosoftOfficialCreated by Microsoft
- Skill
- Workflow
- Cloud and DevOps
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The deploy-model skill provides a centralized workflow for managing Azure OpenAI model deployments. It analyzes user intent to route requests to specific sub-skills for quick preset deployments, fully customized configurations, or capacity discovery across regions. The skill enforces a mandatory project resolution and confirmation process to ensure deployments occur in the correct environment, while performing dynamic validation of model SKU support and subscription quota availability before proceeding.
What it does
- Routes deployment requests to preset, custom, or capacity discovery modes based on user intent.
- Resolves target Azure projects using environment variables or user input.
- Validates model SKU support dynamically via the model catalog.
- Checks subscription quota availability for specific model and SKU combinations.
- Requires explicit user confirmation of the target project and region before deployment.
- Provides a multi-mode chaining pattern for capacity-aware deployment workflows.
When to use it
- When you need to deploy an Azure OpenAI model outside of an azd-managed lifecycle.
- When you need to find available capacity for a model across different regions.
- When you require full control over model version, SKU, capacity, or content filtering policies.
- When you want to perform a quick, default deployment to an optimal region.
Advantages
- Prevents accidental deployments through mandatory project confirmation.
- Ensures deployment success by validating SKU support and quota before execution.
- Simplifies complex deployment decisions through intelligent intent-based routing.
- Provides dynamic, up-to-date information on available capacity and supported SKUs.
Usage examples
- “deploy gpt-4o”
- The agent identifies the request as a preset deployment, resolves the target project, confirms the details with the user, and initiates the deployment.
- “find where I can deploy gpt-4o with 10K capacity”
- The agent routes to capacity discovery to identify regions with sufficient quota and presents the findings to the user.
- “deploy gpt-4o with custom settings”
- The agent initiates the customize mode to allow the user to configure specific version, SKU, and content filter settings.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/microsoft/deploy-model/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip deploy-model.zip -d .agents/skills
Documentation by Microsoft
Deploy Model
Scope — read this first. This skill creates model deployments out-of-band via Azure CLI / MCP / portal. For azd-managed Foundry projects (those scaffolded from
azd ai agent init), declare deployments inazure.yaml services.ai-project.deployments[]instead —azd ai agent initwrites the entry from the sample manifest andazd provisioncreates the deployment through Bicep. See foundry-agent/create/create-hosted.md for the Golden Path. Use this skill only for: (a) Foundry projects not managed by an azd project, (b) ad-hoc deployments outside the azd lifecycle.
Unified entry point for all Azure OpenAI model deployment workflows. Analyzes user intent and routes to the appropriate deployment mode.
Quick Reference
| Mode | When to Use | Sub-Skill |
|---|---|---|
| Preset | Quick deployment, no customization needed | preset/SKILL.md |
| Customize | Full control: version, SKU, capacity, RAI policy | customize/SKILL.md |
| Capacity Discovery | Find where you can deploy with specific capacity | capacity/SKILL.md |
Intent Detection
Analyze the user's prompt and route to the correct mode:
User Prompt
│
├─ Simple deployment (no modifiers)
│ "deploy gpt-4o", "set up a model"
│ └─> PRESET mode
│
├─ Customization keywords present
│ "custom settings", "choose version", "select SKU",
│ "set capacity to X", "configure content filter",
│ "PTU deployment", "with specific quota"
│ └─> CUSTOMIZE mode
│
├─ Capacity/availability query
│ "find where I can deploy", "check capacity",
│ "which region has X capacity", "best region for 10K TPM",
│ "where is this model available"
│ └─> CAPACITY DISCOVERY mode
│
└─ Ambiguous (has capacity target + deploy intent)
"deploy gpt-4o with 10K capacity to best region"
└─> CAPACITY DISCOVERY first → then PRESET or CUSTOMIZERouting Rules
| Signal in Prompt | Route To | Reason |
|---|---|---|
| Just model name, no options | Preset | User wants quick deployment |
| "custom", "configure", "choose", "select" | Customize | User wants control |
| "find", "check", "where", "which region", "available" | Capacity | User wants discovery |
| Specific capacity number + "best region" | Capacity → Preset | Discover then deploy quickly |
| Specific capacity number + "custom" keywords | Capacity → Customize | Discover then deploy with options |
| "PTU", "provisioned throughput" | Customize | PTU requires SKU selection |
| "optimal region", "best region" (no capacity target) | Preset | Region optimization is preset's specialty |
Multi-Mode Chaining
Some prompts require two modes in sequence:
Pattern: Capacity → Deploy When a user specifies a capacity requirement AND wants deployment:
Run Capacity Discovery to find regions/projects with sufficient quota
Present findings to user
Ask: "Would you like to deploy with quick defaults or customize settings?"
Route to Preset or Customize based on answer
💡 Tip: If unsure which mode the user wants, default to Preset (quick deployment). Users who want customization will typically use explicit keywords like "custom", "configure", or "with specific settings".
Project Selection (All Modes)
Before any deployment, resolve which project to deploy to. This applies to all modes (preset, customize, and after capacity discovery).
Resolution Order
Check
PROJECT_RESOURCE_IDenv var — if set, use it as the defaultCheck user prompt — if user named a specific project or region, use that
If neither — query the user's projects and suggest the current one
Confirmation Step (Required)
Always confirm the target before deploying. Show the user what will be used and give them a chance to change it:
Deploying to:
Project: <project-name>
Region: <region>
Resource: <resource-group>
Is this correct? Or choose a different project:
1. ✅ Yes, deploy here (default)
2. 📋 Show me other projects in this region
3. 🌍 Choose a different regionIf user picks option 2, show top 5 projects in that region:
Projects in <region>:
1. project-alpha (rg-alpha)
2. project-beta (rg-beta)
3. project-gamma (rg-gamma)
...⚠️ Never deploy without showing the user which project will be used. This prevents accidental deployments to the wrong resource.
Pre-Deployment Validation (All Modes)
Before presenting any deployment options (SKU, capacity), always validate both of these:
Model supports the SKU — query the model catalog to confirm the selected model+version supports the target SKU:
az cognitiveservices model list --location <region> --subscription <sub-id> -o jsonFilter for the model, extract
.model.skus[].nameto get supported SKUs.Subscription has available quota — check that the user's subscription has unallocated quota for the SKU+model combination:
az cognitiveservices usage list --location <region> --subscription <sub-id> -o jsonMatch by usage name pattern
OpenAI.<SKU>.<model-name>(e.g.,OpenAI.GlobalStandard.gpt-4o). Computeavailable = limit - currentValue.
⚠️ Warning: Only present options that pass both checks. Do NOT show hardcoded SKU lists — always query dynamically. SKUs with 0 available quota should be shown as ❌ informational items, not selectable options.
💡 Quota management: For quota increase requests, usage monitoring, and troubleshooting quota errors, defer to the quota skill instead of duplicating that guidance inline.
Prerequisites
All deployment modes require:
Azure CLI installed and authenticated (
az login)Active Azure subscription with deployment permissions
Microsoft Foundry project resource ID (or agent will help discover it via
PROJECT_RESOURCE_IDenv var)
Sub-Skills
preset/SKILL.md — Quick deployment to optimal region with sensible defaults
customize/SKILL.md — Interactive guided flow with full configuration control
capacity/SKILL.md — Discover available capacity across regions and projects
Files
- ATTRIBUTION.mdAdded by AutoGineer1018 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md7.1 KiB
- TEST_PROMPTS.md3.3 KiB
- scripts/generate_deployment_url.ps1Script2.3 KiB
- scripts/generate_deployment_url.shScript2.6 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs a command-line tool
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Microsoft
- Publisher
- Microsoft (Official)
- Source
- microsoft/skills · .github/plugins/azure-skills/skills/microsoft-foundry/models/deploy-model · commit 0696600
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from .github/plugins/azure-skills/LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Also distributed in
- microsoft/azure-skills
AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download deploy-model.zip