{"id":"b8064f97-e5dc-48d0-8999-292e300a7f75","shortId":"arzSuc","kind":"skill","title":"azure-ai-ml-py","tagline":"Azure Machine Learning SDK v2 for Python. Use for ML workspaces, jobs, models, datasets, compute, and pipelines.","description":"# Azure Machine Learning SDK v2 for Python\n\nClient library for managing Azure ML resources: workspaces, jobs, models, data, and compute.\n\n## Installation\n\n```bash\npip install azure-ai-ml\n```\n\n## Environment Variables\n\n```bash\nAZURE_SUBSCRIPTION_ID=<your-subscription-id>\nAZURE_RESOURCE_GROUP=<your-resource-group>\nAZURE_ML_WORKSPACE_NAME=<your-workspace-name>\n```\n\n## Authentication\n\n```python\nfrom azure.ai.ml import MLClient\nfrom azure.identity import DefaultAzureCredential\n\nml_client = MLClient(\n    credential=DefaultAzureCredential(),\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"],\n    resource_group_name=os.environ[\"AZURE_RESOURCE_GROUP\"],\n    workspace_name=os.environ[\"AZURE_ML_WORKSPACE_NAME\"]\n)\n```\n\n### From Config File\n\n```python\nfrom azure.ai.ml import MLClient\nfrom azure.identity import DefaultAzureCredential\n\n# Uses config.json in current directory or parent\nml_client = MLClient.from_config(\n    credential=DefaultAzureCredential()\n)\n```\n\n## Workspace Management\n\n### Create Workspace\n\n```python\nfrom azure.ai.ml.entities import Workspace\n\nws = Workspace(\n    name=\"my-workspace\",\n    location=\"eastus\",\n    display_name=\"My Workspace\",\n    description=\"ML workspace for experiments\",\n    tags={\"purpose\": \"demo\"}\n)\n\nml_client.workspaces.begin_create(ws).result()\n```\n\n### List Workspaces\n\n```python\nfor ws in ml_client.workspaces.list():\n    print(f\"{ws.name}: {ws.location}\")\n```\n\n## Data Assets\n\n### Register Data\n\n```python\nfrom azure.ai.ml.entities import Data\nfrom azure.ai.ml.constants import AssetTypes\n\n# Register a file\nmy_data = Data(\n    name=\"my-dataset\",\n    version=\"1\",\n    path=\"azureml://datastores/workspaceblobstore/paths/data/train.csv\",\n    type=AssetTypes.URI_FILE,\n    description=\"Training data\"\n)\n\nml_client.data.create_or_update(my_data)\n```\n\n### Register Folder\n\n```python\nmy_data = Data(\n    name=\"my-folder-dataset\",\n    version=\"1\",\n    path=\"azureml://datastores/workspaceblobstore/paths/data/\",\n    type=AssetTypes.URI_FOLDER\n)\n\nml_client.data.create_or_update(my_data)\n```\n\n## Model Registry\n\n### Register Model\n\n```python\nfrom azure.ai.ml.entities import Model\nfrom azure.ai.ml.constants import AssetTypes\n\nmodel = Model(\n    name=\"my-model\",\n    version=\"1\",\n    path=\"./model/\",\n    type=AssetTypes.CUSTOM_MODEL,\n    description=\"My trained model\"\n)\n\nml_client.models.create_or_update(model)\n```\n\n### List Models\n\n```python\nfor model in ml_client.models.list(name=\"my-model\"):\n    print(f\"{model.name} v{model.version}\")\n```\n\n## Compute\n\n### Create Compute Cluster\n\n```python\nfrom azure.ai.ml.entities import AmlCompute\n\ncluster = AmlCompute(\n    name=\"cpu-cluster\",\n    type=\"amlcompute\",\n    size=\"Standard_DS3_v2\",\n    min_instances=0,\n    max_instances=4,\n    idle_time_before_scale_down=120\n)\n\nml_client.compute.begin_create_or_update(cluster).result()\n```\n\n### List Compute\n\n```python\nfor compute in ml_client.compute.list():\n    print(f\"{compute.name}: {compute.type}\")\n```\n\n## Jobs\n\n### Command Job\n\n```python\nfrom azure.ai.ml import command, Input\n\njob = command(\n    code=\"./src\",\n    command=\"python train.py --data ${{inputs.data}} --lr ${{inputs.learning_rate}}\",\n    inputs={\n        \"data\": Input(type=\"uri_folder\", path=\"azureml:my-dataset:1\"),\n        \"learning_rate\": 0.01\n    },\n    environment=\"AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest\",\n    compute=\"cpu-cluster\",\n    display_name=\"training-job\"\n)\n\nreturned_job = ml_client.jobs.create_or_update(job)\nprint(f\"Job URL: {returned_job.studio_url}\")\n```\n\n### Monitor Job\n\n```python\nml_client.jobs.stream(returned_job.name)\n```\n\n## Pipelines\n\n```python\nfrom azure.ai.ml import dsl, Input, Output\nfrom azure.ai.ml.entities import Pipeline\n\n@dsl.pipeline(\n    compute=\"cpu-cluster\",\n    description=\"Training pipeline\"\n)\ndef training_pipeline(data_input):\n    prep_step = prep_component(data=data_input)\n    train_step = train_component(\n        data=prep_step.outputs.output_data,\n        learning_rate=0.01\n    )\n    return {\"model\": train_step.outputs.model}\n\npipeline = training_pipeline(\n    data_input=Input(type=\"uri_folder\", path=\"azureml:my-dataset:1\")\n)\n\npipeline_job = ml_client.jobs.create_or_update(pipeline)\n```\n\n## Environments\n\n### Create Custom Environment\n\n```python\nfrom azure.ai.ml.entities import Environment\n\nenv = Environment(\n    name=\"my-env\",\n    version=\"1\",\n    image=\"mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04\",\n    conda_file=\"./environment.yml\"\n)\n\nml_client.environments.create_or_update(env)\n```\n\n## Datastores\n\n### List Datastores\n\n```python\nfor ds in ml_client.datastores.list():\n    print(f\"{ds.name}: {ds.type}\")\n```\n\n### Get Default Datastore\n\n```python\ndefault_ds = ml_client.datastores.get_default()\nprint(f\"Default: {default_ds.name}\")\n```\n\n## MLClient Operations\n\n| Property | Operations |\n|----------|------------|\n| `workspaces` | create, get, list, delete |\n| `jobs` | create_or_update, get, list, stream, cancel |\n| `models` | create_or_update, get, list, archive |\n| `data` | create_or_update, get, list |\n| `compute` | begin_create_or_update, get, list, delete |\n| `environments` | create_or_update, get, list |\n| `datastores` | create_or_update, get, list, get_default |\n| `components` | create_or_update, get, list |\n\n## Best Practices\n\n1. **Use versioning** for data, models, and environments\n2. **Configure idle scale-down** to reduce compute costs\n3. **Use environments** for reproducible training\n4. **Stream job logs** to monitor progress\n5. **Register models** after successful training jobs\n6. **Use pipelines** for multi-step workflows\n7. **Tag resources** for organization and cost tracking\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["azure","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity-skills"],"capabilities":["skill","source-sickn33","skill-azure-ai-ml-py","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/azure-ai-ml-py","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34964 github stars · SKILL.md body (6,017 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-25T00:50:31.141Z","embedding":null,"createdAt":"2026-04-18T21:31:56.362Z","updatedAt":"2026-04-25T00:50:31.141Z","lastSeenAt":"2026-04-25T00:50:31.141Z","tsv":"'/azureml/openmpi4.1.0-ubuntu20.04':484 '/environment.yml':487 '/model':251 '/src':341 '0':302 '0.01':364,439 '1':192,218,249,361,457,480,576 '1.0':369 '120':311 '2':584 '3':594 '4':305,600 '5':607 '6':614 '7':622 'action':642 'ai':3,49 'amlcomput':287,289,295 'applic':636 'archiv':539 'ask':680 'asset':169 'assettyp':180,241 'assettypes.custom':253 'assettypes.uri':196,222 'authent':64 'azur':2,6,23,34,48,54,57,60,82,89,95 'azure-ai-ml':47 'azure-ai-ml-pi':1 'azure.ai.ml':67,104,334,401 'azure.ai.ml.constants':178,239 'azure.ai.ml.entities':130,174,235,285,407,470 'azure.identity':71,108 'azureml':357,367,453 'azureml-sklearn':366 'bash':44,53 'begin':547 'best':574 'boundari':688 'cancel':532 'clarif':682 'clear':655 'client':30,75,119 'cluster':282,288,293,316,375,414 'code':340 'command':330,336,339,342 'compon':426,433,568 'comput':20,42,279,281,319,322,372,411,546,592 'compute.name':327 'compute.type':328 'conda':485 'config':100,121 'config.json':112 'configur':585 'cost':593,628 'cpu':292,374,413 'cpu-clust':291,373,412 'creat':126,154,280,313,465,521,526,534,541,548,555,561,569 'credenti':77,122 'criteria':691 'current':114 'custom':466 'data':40,168,171,176,185,186,200,205,210,211,228,345,351,421,427,428,434,436,446,540,580 'dataset':19,190,216,360,456 'datastor':492,494,506,560 'datastores/workspaceblobstore/paths/data':220 'datastores/workspaceblobstore/paths/data/train.csv':194 'def':418 'default':505,508,511,514,567 'default_ds.name':515 'defaultazurecredenti':73,78,110,123 'delet':524,553 'demo':152 'describ':643,659 'descript':145,198,255,415 'directori':115 'display':141,376 'ds':497,509 'ds.name':502 'ds.type':503 'ds3':298 'dsl':403 'dsl.pipeline':410 'eastus':140 'env':473,478,491 'environ':51,365,464,467,472,474,554,583,596,671 'environment-specif':670 'execut':638 'experi':149 'expert':676 'f':165,275,326,388,501,513 'file':101,183,197,486 'folder':207,215,223,355,451 'get':504,522,529,537,544,551,558,564,566,572 'group':59,86,91 'id':56,80,84 'idl':306,586 'imag':481 'import':68,72,105,109,131,175,179,236,240,286,335,402,408,471 'input':337,350,352,404,422,429,447,448,685 'inputs.data':346 'inputs.learning':348 'instal':43,46 'instanc':301,304 'job':17,38,329,331,338,380,382,386,389,394,459,525,602,613 'latest':371 'learn':8,25,362,437 'librari':31 'limit':647 'list':157,263,318,493,523,530,538,545,552,559,565,573 'locat':139 'log':603 'lr':347 'machin':7,24 'manag':33,125 'match':656 'max':303 'mcr.microsoft.com':483 'mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04':482 'min':300 'miss':693 'ml':4,15,35,50,61,74,96,118,146 'ml_client.compute.begin':312 'ml_client.compute.list':324 'ml_client.data.create':201,224 'ml_client.datastores.get':510 'ml_client.datastores.list':499 'ml_client.environments.create':488 'ml_client.jobs.create':383,460 'ml_client.jobs.stream':396 'ml_client.models.create':259 'ml_client.models.list':269 'ml_client.workspaces.begin':153 'ml_client.workspaces.list':163 'mlclient':69,76,106,516 'mlclient.from':120 'model':18,39,229,232,237,242,243,247,254,258,262,264,267,273,441,533,581,609 'model.name':276 'model.version':278 'monitor':393,605 'multi':619 'multi-step':618 'my-dataset':188,358,454 'my-env':476 'my-folder-dataset':213 'my-model':245,271 'my-workspac':136 'name':63,87,93,98,135,142,187,212,244,270,290,377,475 'oper':517,519 'organ':626 'os.environ':81,88,94 'output':405,665 'overview':646 'parent':117 'path':193,219,250,356,452 'permiss':686 'pip':45 'pipelin':22,398,409,417,420,443,445,458,463,616 'practic':575 'prep':423,425 'prep_step.outputs.output':435 'print':164,274,325,387,500,512 'progress':606 'properti':518 'purpos':151 'py':5 'python':12,29,65,102,128,159,172,208,233,265,283,320,332,343,395,399,468,495,507 'rate':349,363,438 'reduc':591 'regist':170,181,206,231,608 'registri':230 'reproduc':598 'requir':684 'resourc':36,58,85,90,624 'result':156,317 'return':381,440 'returned_job.name':397 'returned_job.studio':391 'review':677 'safeti':687 'scale':309,588 'scale-down':587 'scope':658 'sdk':9,26 'size':296 'skill':634,650 'skill-azure-ai-ml-py' 'sklearn':368 'source-sickn33' 'specif':672 'standard':297 'step':424,431,620 'stop':678 'stream':531,601 'subscript':55,79,83 'substitut':668 'success':611,690 'tag':150,623 'task':654 'test':674 'time':307 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'track':629 'train':199,257,379,416,419,430,432,444,599,612 'train.py':344 'train_step.outputs.model':442 'training-job':378 'treat':663 'type':195,221,252,294,353,449 'ubuntu20.04-py38-cpu':370 'updat':203,226,261,315,385,462,490,528,536,543,550,557,563,571 'uri':354,450 'url':390,392 'use':13,111,577,595,615,632,648 'v':277 'v2':10,27,299 'valid':673 'variabl':52 'version':191,217,248,479,578 'workflow':621,640 'workspac':16,37,62,92,97,124,127,132,134,138,144,147,158,520 'ws':133,155,161 'ws.location':167 'ws.name':166","prices":[{"id":"ff5740ed-7455-47a9-9bb5-5c404eb60d1f","listingId":"b8064f97-e5dc-48d0-8999-292e300a7f75","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:31:56.362Z"}],"sources":[{"listingId":"b8064f97-e5dc-48d0-8999-292e300a7f75","source":"github","sourceId":"sickn33/antigravity-awesome-skills/azure-ai-ml-py","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-ai-ml-py","isPrimary":false,"firstSeenAt":"2026-04-18T21:31:56.362Z","lastSeenAt":"2026-04-25T00:50:31.141Z"}],"details":{"listingId":"b8064f97-e5dc-48d0-8999-292e300a7f75","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"azure-ai-ml-py","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34964,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-24T06:41:17Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"087dadef3c2cbd3b3983c858bfdfba1ec08d5788","skill_md_path":"skills/azure-ai-ml-py/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-ai-ml-py"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"azure-ai-ml-py","description":"Azure Machine Learning SDK v2 for Python. Use for ML workspaces, jobs, models, datasets, compute, and pipelines."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/azure-ai-ml-py"},"updatedAt":"2026-04-25T00:50:31.141Z"}}