Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build and deploy AI applications on Azure AI Foundry using Microsoft's model catalog and AI services
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
resource/create/create-foundry-resource.md
1---2name: microsoft-foundry:resource/create3description: |4Create Azure AI Services multi-service resource (Foundry resource) using Azure CLI.5USE FOR: create Foundry resource, new AI Services resource, create multi-service resource, provision Azure AI Services, AIServices kind resource, register resource provider, enable Cognitive Services, setup AI Services account, create resource group for Foundry.6DO NOT USE FOR: creating ML workspace hubs (use microsoft-foundry:project/create), deploying models (use microsoft-foundry:models/deploy), managing permissions (use microsoft-foundry:rbac), monitoring resource usage (use microsoft-foundry:quota).7compatibility:8required:9- azure-cli: ">=2.0"10optional:11- powershell: ">=7.0"12- azure-portal: "any"13---1415# Create Foundry Resource1617This sub-skill orchestrates creation of Azure AI Services multi-service resources using Azure CLI.1819> **Important:** All resource creation operations are **control plane (management)** operations. Use **Azure CLI commands** as the primary method.2021> **Note:** For monitoring resource usage and quotas, use the `microsoft-foundry:quota` skill.2223**Table of Contents:** [Quick Reference](#quick-reference) · [When to Use](#when-to-use) · [Prerequisites](#prerequisites) · [Core Workflows](#core-workflows) · [Important Notes](#important-notes) · [Additional Resources](#additional-resources)2425## Quick Reference2627| Property | Value |28|----------|-------|29| **Classification** | WORKFLOW SKILL |30| **Operation Type** | Control Plane (Management) |31| **Primary Method** | Azure CLI: `az cognitiveservices account create` |32| **Resource Type** | `Microsoft.CognitiveServices/accounts` (kind: `AIServices`) |33| **Resource Kind** | `AIServices` (multi-service) |3435## When to Use3637Use this sub-skill when you need to:3839- **Create Foundry resource** - Provision new Azure AI Services multi-service account40- **Create resource group** - Set up resource group before creating resources41- **Register resource provider** - Enable Microsoft.CognitiveServices provider42- **Manual resource creation** - CLI-based resource provisioning4344**Do NOT use for:**45- Creating ML workspace hubs/projects (use `microsoft-foundry:project/create`)46- Deploying AI models (use `microsoft-foundry:models/deploy`)47- Managing RBAC permissions (use `microsoft-foundry:rbac`)48- Monitoring resource usage (use `microsoft-foundry:quota`)4950## Prerequisites5152- **Azure subscription** - Active subscription ([create free account](https://azure.microsoft.com/pricing/purchase-options/azure-account))53- **Azure CLI** - Version 2.0 or later installed54- **Authentication** - Run `az login` before commands55- **RBAC roles** - One of:56- Contributor57- Owner58- Custom role with `Microsoft.CognitiveServices/accounts/write`59- **Resource provider** - `Microsoft.CognitiveServices` must be registered in your subscription60- If not registered, see [Workflow #3: Register Resource Provider](#3-register-resource-provider)61- If you lack permissions, ask a subscription Owner/Contributor to register it or grant you `/register/action` privilege6263> **Need RBAC help?** See [microsoft-foundry:rbac](../../rbac/rbac.md) for permission management.6465## Core Workflows6667### 1. Create Resource Group6869**Command Pattern:** "Create a resource group for my Foundry resources"7071#### Steps72731. **Ask user preference**: Use existing or create new resource group742. **If using existing**: List and let user select from available groups (0-4: show all, 5+: show 5 most recent with "Other" option)753. **If creating new**: Ask user to choose region, then create7677```bash78# List existing resource groups79az group list --query "[-5:].{Name:name, Location:location}" --out table8081# Or create new82az group create --name <rg-name> --location <location>83az group show --name <rg-name> --query "{Name:name, Location:location, State:properties.provisioningState}"84```8586See [Detailed Workflow Steps](./references/workflows.md) for complete instructions.8788---8990### 2. Create Foundry Resource9192**Command Pattern:** "Create a new Azure AI Services resource"9394#### Steps95961. **Verify prerequisites**: Check Azure CLI, authentication, and provider registration972. **Choose location**: Always ask user to select region (don't assume resource group location)983. **Create resource**: Use `--kind AIServices` and `--sku S0` (only supported tier)994. **Verify and get keys**100101```bash102# Create Foundry resource103az cognitiveservices account create \104--name <resource-name> \105--resource-group <rg> \106--kind AIServices \107--sku S0 \108--location <location> \109--yes110111# Verify and get keys112az cognitiveservices account show --name <resource-name> --resource-group <rg>113az cognitiveservices account keys list --name <resource-name> --resource-group <rg>114```115116**Important:** S0 (Standard) is the only supported SKU - F0 free tier not available for AIServices.117118See [Detailed Workflow Steps](./references/workflows.md) for complete instructions.119120---121122### 3. Register Resource Provider123124**Command Pattern:** "Register Cognitive Services provider"125126Required when first creating Cognitive Services in subscription or if you get `ResourceProviderNotRegistered` error.127128```bash129# Register provider (requires Owner/Contributor role)130az provider register --namespace Microsoft.CognitiveServices131az provider show --namespace Microsoft.CognitiveServices --query "registrationState"132```133134If you lack permissions, ask a subscription Owner/Contributor to register it or use `microsoft-foundry:rbac` skill.135136See [Detailed Workflow Steps](./references/workflows.md) for complete instructions.137138---139140## Important Notes141142- **Resource kind must be `AIServices`** for multi-service Foundry resources143- **SKU must be S0** (Standard) - F0 free tier not available for AIServices144- Always ask user to choose location - different regions may have varying availability145146---147148## Additional Resources149150- [Common Patterns](./references/patterns.md) - Quick setup patterns and command reference151- [Troubleshooting](./references/troubleshooting.md) - Common errors and solutions152- [Azure AI Services documentation](https://learn.microsoft.com/en-us/azure/ai-services/multi-service-resource?pivots=azcli)153