Install the "azure-ai-ml-py" agent skill from https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-ai-ml-py into .claude/skills/azure-ai-ml-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "azure-ai-ml-py", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add microsoft/skills --skill azure-ai-ml-py -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "azure-ai-ml-py" agent skill from https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-ai-ml-py into .agents/skills/azure-ai-ml-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "azure-ai-ml-py", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add microsoft/skills --skill azure-ai-ml-py -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "azure-ai-ml-py" agent skill from https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-ai-ml-py into .cursor/skills/azure-ai-ml-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "azure-ai-ml-py", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add microsoft/skills --skill azure-ai-ml-py -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "azure-ai-ml-py" agent skill from https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-ai-ml-py into .gemini/skills/azure-ai-ml-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "azure-ai-ml-py", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add microsoft/skills --skill azure-ai-ml-py -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "azure-ai-ml-py" agent skill from https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-ai-ml-py into .github/skills/azure-ai-ml-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "azure-ai-ml-py", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add microsoft/skills --skill azure-ai-ml-py -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "azure-ai-ml-py" agent skill from https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-ai-ml-py into .opencode/skills/azure-ai-ml-py/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "azure-ai-ml-py", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
azure-ai-ml-py
GitHub stars
3.1k
Used in
5 other repos
Token cost
~2.2k tokens
SKILL.md length
410 words
Files
3 (incl. references)
Skills in repo
150
Repo updated
First seen
Licence
MIT
At a glance
Azure Machine Learning SDK v2 for Python. An agent skill from microsoft/skills.
Works in 9 steps: Pick sync OR async and stay consistent.… → Always use context managers for clients… → Use versioning for data, models, and… → …
Tasks that involve MLOps
SKILL.md covers Installation, Environment Variables, Authentication & Lifecycle and Workspace Management, plus 10 more sections
Azure AI ML Py is an agent skill from microsoft/skills, published by the product's own GitHub organization. Azure Machine Learning SDK v2 for Python. Use for ML workspaces, jobs, models, datasets, compute, and pipelines. Triggers: "azure-ai-ml", "MLClient", "workspace", "model registry", "training jobs", "datasets".
Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/capabilities.md` and `references/non-hero-scenarios.md`).
It sits in DevOps & Cloud, covering MLOps. It works with Azure Machine Learning, Python, Microsoft Azure and Visual Studio Code. The repository describes itself as: Skills, MCP servers, Custom Agents, Agents.md for SDKs to ground Coding Agents. The licence is MIT.
When your agent uses it
Tasks that involve MLOps
Example prompts
“azure-ai-ml”
“MLClient”
“workspace”
“/azure-ai-ml-py”
Requirements
Python 3
Workflow steps
9 steps, taken from the first numbered list in SKILL.md.
1Pick sync OR async and stay consistent. Do not mix azure.ai.ml sync clients with azure.ai.ml async clients in the same call path. Choose…
2Always use context managers for clients and async credentials. Wrap every client in with MLClient(...) as client: (sync) or async with…
3Use versioning for data, models, and environments
4Configure idle scale-down to reduce compute costs
5Use environments for reproducible training
6Stream job logs to monitor progress
7Register models after successful training jobs
8Use pipelines for multi-step workflows
9Tag resources for organization and cost tracking
What it can do on your machine
Read from SKILL.md and the folder at commit 3898ec8. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
Shell commands in SKILL.md call:
pip
From the folder's file list and the shell code blocks in SKILL.md.
Network
Hosts in commands or code, which the agent is likely to contact:
learn.microsoft.com
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names these keys or tokens, usually read from environment variables:
AZURE_TOKEN_CREDENTIALS
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
Azure AI ML Py loads about 2.2k tokens when it runs, and up to ~3.2k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 410 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~56
When it runs· the whole SKILL.md, loaded when a task matches
~2.2k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~3.2k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
Download SKILL.mdSave it as .claude/skills/azure-ai-ml-py/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
azure-ai-ml-py
description
Azure Machine Learning SDK v2 for Python. Use for ML workspaces, jobs, models, datasets, compute, and pipelines.
Triggers: "azure-ai-ml", "MLClient", "workspace", "model registry", "training jobs", "datasets".
license
MIT
metadata.author
Microsoft
metadata.version
1.0.0
metadata.package
azure-ai-ml
Azure Machine Learning SDK v2 for Python
Client library for managing Azure ML resources: workspaces, jobs, models, data, and compute.
Installation
bash
pip install azure-ai-ml
Environment Variables
bash
AZURE_SUBSCRIPTION_ID=<your-subscription-id> # Required for all auth methods
AZURE_RESOURCE_GROUP=<your-resource-group> # Required for all auth methods
AZURE_ML_WORKSPACE_NAME=<your-workspace-name> # Required for all auth methods
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
Authentication & Lifecycle
🔑 Two rules apply to every code sample below:
Prefer DefaultAzureCredential. It works locally (Azure CLI / VS Code / Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account/API keys — they bypass Entra audit and rotation.
Local dev: DefaultAzureCredential works as-is.
Production: set AZURE_TOKEN_CREDENTIALS=prod (or AZURE_TOKEN_CREDENTIALS=<specific_credential>) to constrain the credential chain to production-safe credentials.
Wrap every client in a context manager so HTTP transports, sockets, and token caches are released deterministically:
Sync: with <Client>(...) as client:
Async: async with <Client>(...) as client:andasync with DefaultAzureCredential() as credential: (from azure.identity.aio)
Snippets may abbreviate this setup, but production code should always follow both rules.
python
from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential, ManagedIdentityCredential
import os
# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential>
credential = DefaultAzureCredential(require_envvar=True)
# Or use a specific credential directly in production:
# See https://learn.microsoft.com/python/api/overview/azure/identity-readme?view=azure-python#credential-classes
# credential = ManagedIdentityCredential()
with MLClient(
credential=credential,
subscription_id=os.environ["AZURE_SUBSCRIPTION_ID"],
resource_group_name=os.environ["AZURE_RESOURCE_GROUP"],
workspace_name=os.environ["AZURE_ML_WORKSPACE_NAME"]
) as ml_client:
for ws in ml_client.workspaces.list():
print(ws.name)
From Config File
python
from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential
# Uses config.json in current directory or parent
with MLClient.from_config(
credential=DefaultAzureCredential()
) as ml_client:
for ws in ml_client.workspaces.list():
print(ws.name)
Long-lived ml_client: Subsequent examples in this skill assume ml_client was created via the pattern above and is alive for the lifetime of your script. In production, wrap your top-level workflow in a single with MLClient(...) as ml_client: block so the underlying HTTP transport closes cleanly on exit.
Workspace Management
Create Workspace
python
from azure.ai.ml.entities import Workspace
ws = Workspace(
name="my-workspace",
location="eastus",
display_name="My Workspace",
description="ML workspace for experiments",
tags={"purpose": "demo"}
)
ml_client.workspaces.begin_create(ws).result()
List Workspaces
python
for ws in ml_client.workspaces.list():
print(f"{ws.name}: {ws.location}")
Data Assets
Register Data
python
from azure.ai.ml.entities import Data
from azure.ai.ml.constants import AssetTypes
# Register a file
my_data = Data(
name="my-dataset",
version="1",
path="azureml://datastores/workspaceblobstore/paths/data/train.csv",
type=AssetTypes.URI_FILE,
description="Training data"
)
ml_client.data.create_or_update(my_data)
from azure.ai.ml.entities import Model
from azure.ai.ml.constants import AssetTypes
model = Model(
name="my-model",
version="1",
path="./model/",
type=AssetTypes.CUSTOM_MODEL,
description="My trained model"
)
ml_client.models.create_or_update(model)
List Models
python
for model in ml_client.models.list(name="my-model"):
print(f"{model.name} v{model.version}")
Pick sync OR async and stay consistent. Do not mix azure.ai.ml sync clients with azure.ai.ml async clients in the same call path. Choose one mode per module.
Always use context managers for clients and async credentials. Wrap every client in with MLClient(...) as client: (sync) or async with MLClient(...) as client: (async). For async DefaultAzureCredential from azure.identity.aio, also use async with credential: so tokens and transports are cleaned up.
We found 14 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 5 other GitHub owners. This page covers the copy in microsoft/skills, which our catalogue first saw on October 7, 2026.
Azure AI ML Py next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
Submit, monitor, analyze, and evaluate LeRobot imitation learning training jobs on OSMO with Azure ML MLflow integration and inference evaluation - Brought to you by microsoft/physical-ai-toolchain
Sets up and maintains AzureML-ready Python projects as uv workspaces with devcontainers, a Makefile and job YAML, so local runs match cloud jobs and experiments stay reproducible.
Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.
Analyze Terraform plan JSON output for AzureRM Provider to distinguish between false-positive diffs (order-only changes in Set-type attributes) and actual resource changes.
Reference for building on Microsoft Foundry with the azure-ai-projects Python SDK: project clients, versioned agents, evaluations, connections, datasets and indexes.
Azure Machine Learning SDK v2 for Python. An agent skill from microsoft/skills. Azure AI ML Py is an agent skill from microsoft/skills, published by the product's own GitHub organization. Azure Machine Learning SDK v2 for Python.
When should I use Azure AI ML Py?
Azure AI ML Py fits situations like: tasks that involve MLOps.
How do I install Azure AI ML Py in Claude Code?
Run `npx skills add microsoft/skills --skill azure-ai-ml-py -a claude-code`. Or copy the skill folder (.github/plugins/azure-sdk-python/skills/azure-ai-ml-py in microsoft/skills) into .claude/skills/azure-ai-ml-py in your project. Claude Code loads it when a task matches its description.
How do I install Azure AI ML Py in Codex?
Run `npx skills add microsoft/skills --skill azure-ai-ml-py -a codex`. Or copy the skill folder (.github/plugins/azure-sdk-python/skills/azure-ai-ml-py in microsoft/skills) into .agents/skills/azure-ai-ml-py in your project. Codex loads it when a task matches its description.
Can I use Azure AI ML Py in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/skills --skill azure-ai-ml-py -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/azure-ai-ml-py, .gemini/skills/azure-ai-ml-py, .github/skills/azure-ai-ml-py and .opencode/skills/azure-ai-ml-py in your project.
What does Azure AI ML Py need to run?
Going by SKILL.md and its folder, Azure AI ML Py needs the command-line tools its instructions call (pip) and credentials named AZURE_TOKEN_CREDENTIALS. Our summary lists: Python 3.
Does Azure AI ML Py access the network?
SKILL.md names 1 domain. In commands or code: learn.microsoft.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Is Azure AI ML Py safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
What licence does Azure AI ML Py use?
Azure AI ML Py is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does Azure AI ML Py use?
About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1k tokens, read only when the agent opens those files.
What are the alternatives to Azure AI ML Py?
Skills that share tags, products or a category with Azure AI ML Py: Osmo Lerobot Training (microsoft/physical-ai-toolchain, 123 stars), AzureML Project Scaffolding (Kilo-Org/kilo-marketplace, 190 stars), Azure Quantum (MicrosoftDocs/Agent-Skills, 777 stars) and Azure Architecture Autopilot (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains Azure AI ML Py?
microsoft (a GitHub organization, an official publisher) maintains it in microsoft/skills, which has 3,094 GitHub stars. The repository holds 150 skills in this directory. The repository was last updated on October 9, 2026.
Source: microsoft/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.