All skills
microsoft avatar

/microsoft-foundry

@04110d9
by microsoftmicrosoft/skills3.1k stars
351

Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, create agent, update agent, add tool to agent, invoke agent, agent.yaml, agent insights, pull agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, prompt optimizer, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure-prepare).

Use this Skill: https://skilld.dev/gh/microsoft/skills/microsoft-foundry

This session only. Nothing lands on disk.

resourcecreatecreate-foundry-resource.md

≈1.6k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Create Foundry Resource

This sub-skill orchestrates creation of Azure AI Services multi-service resources using Azure CLI.

Important: All resource creation operations are control plane (management) operations. Use Azure CLI commands as the primary method.

Note: For monitoring resource usage and quotas, use the microsoft-foundry:quota skill.

Table of Contents: Quick Reference · When to Use · Prerequisites · Core Workflows · Important Notes · Additional Resources

Quick Reference

Property Value
Classification WORKFLOW SKILL
Operation Type Control Plane (Management)
Primary Method Azure CLI: az cognitiveservices account create
Resource Type Microsoft.CognitiveServices/accounts (kind: AIServices)
Resource Kind AIServices (multi-service)

When to Use

Use this sub-skill when you need to:

  • Create Foundry resource - Provision new Azure AI Services multi-service account
  • Create resource group - Set up resource group before creating resources
  • Register resource provider - Enable Microsoft.CognitiveServices provider
  • Manual resource creation - CLI-based resource provisioning

Do NOT use for:

  • Creating ML workspace hubs/projects (use microsoft-foundry:project/create)
  • Deploying AI models (use microsoft-foundry:models/deploy)
  • Managing RBAC permissions (use microsoft-foundry:rbac)
  • Monitoring resource usage (use microsoft-foundry:quota)

Prerequisites

  • Azure subscription - Active subscription (create free account)
  • Azure CLI - Version 2.0 or later installed
  • Authentication - Run az login before commands
  • RBAC roles - One of:
    • Contributor
    • Owner
    • Custom role with Microsoft.CognitiveServices/accounts/write
  • Resource provider - Microsoft.CognitiveServices must be registered in your subscription

Need RBAC help? See microsoft-foundry:rbac for permission management.

Core Workflows

1. Create Resource Group

Command Pattern: "Create a resource group for my Foundry resources"

Steps
  1. Ask user preference: Use existing or create new resource group
  2. If using existing: List and let user select from available groups (0-4: show all, 5+: show 5 most recent with "Other" option)
  3. If creating new: Ask user to choose region, then create
# List existing resource groups
az group list --query "[-5:].{Name:name, Location:location}" --out table

# Or create new
az group create --name <rg-name> --location <location>
az group show --name <rg-name> --query "{Name:name, Location:location, State:properties.provisioningState}"

See Detailed Workflow Steps for complete instructions.


2. Create Foundry Resource

Command Pattern: "Create a new Azure AI Services resource"

Steps
  1. Verify prerequisites: Check Azure CLI, authentication, and provider registration
  2. Choose location: Always ask user to select region (don't assume resource group location)
  3. Create resource: Use --kind AIServices and --sku S0 (only supported tier)
  4. Verify and get keys
# Create Foundry resource
az cognitiveservices account create \
  --name <resource-name> \
  --resource-group <rg> \
  --kind AIServices \
  --sku S0 \
  --location <location> \
  --yes

# Verify and get keys
az cognitiveservices account show --name <resource-name> --resource-group <rg>
az cognitiveservices account keys list --name <resource-name> --resource-group <rg>

Important: S0 (Standard) is the only supported SKU - F0 free tier not available for AIServices.

See Detailed Workflow Steps for complete instructions.


3. Register Resource Provider

Command Pattern: "Register Cognitive Services provider"

Required when first creating Cognitive Services in subscription or if you get ResourceProviderNotRegistered error.

# Register provider (requires Owner/Contributor role)
az provider register --namespace Microsoft.CognitiveServices
az provider show --namespace Microsoft.CognitiveServices --query "registrationState"

If you lack permissions, ask a subscription Owner/Contributor to register it or use microsoft-foundry:rbac skill.

See Detailed Workflow Steps for complete instructions.


Important Notes

  • Resource kind must be AIServices for multi-service Foundry resources
  • SKU must be S0 (Standard) - F0 free tier not available for AIServices
  • Always ask user to choose location - different regions may have varying availability

Additional Resources

Source: SKILL.md on GitHub

2 warnings3d4 checks · Risk SAFE
  • Gen Agent Trust Hub3d

    This skill provides a comprehensive environment for managing the end-to-end lifecycle of AI agents, models, and infrastructure on Microsoft Foundry. It includes sub-skills for deployment, evaluation, fine-tuning, and troubleshooting. The skill utilizes dynamic code execution and shell command wrappers, which are used within the context of local development and cloud orchestration. All external resources and dependencies originate from trusted organizations and well-known services.

  • Socket3d

    2 alerts: gptSecurity, gptAnomaly

  • Snyk3d

    Risk: LOW · No issues

  • Runlayer7mo

    36/36 files flagged

Signed by skilld at 04110d9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "author": "Microsoft",
  "version": "1.2.26"
}

README badge

README badge for microsoft/skills/microsoft-foundry