Events
Take the Microsoft Learn Challenge
Nov 19, 11 PM - Jan 10, 11 PM
Ignite Edition - Build skills in Microsoft Azure and earn a digital badge by January 10!
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
APPLIES TO: Python SDK azure-ai-ml v2 (current)
The AzureML-Examples repository includes the latest (v2) Azure Machine Learning Python CLI and SDK samples. For information on the various example types, see the readme.
This article shows you how to access the repository from the following environments:
You can also browse code samples for more examples.
The easiest way to get started with the samples is to complete Create resources to get started. Once completed, you have a dedicated notebook server preloaded with the SDK and the Azure Machine Learning Notebooks repository. No downloads or installation necessary.
To view example notebooks:
If you'd like to bring your own notebook server for local development, follow these steps on your computer.
Use the instructions at Azure Machine Learning SDK to install the Azure Machine Learning SDK (v2) for Python
Create an Azure Machine Learning workspace.
Clone the AzureML-Examples repository.
git clone https://github.com/Azure/azureml-examples.git --depth 1
Start the notebook server from the directory containing your clone.
jupyter notebook
These instructions install the base SDK packages necessary for the quickstart and tutorial notebooks. Other sample notebooks might require you to install extra components. For more information, see Install the Azure Machine Learning SDK for Python.
The Data Science Virtual Machine (DSVM) is a customized Virtual Machine (VM) image built specifically for doing data science. If you create a DSVM, the SDK and notebook server are installed and configured for you. However, you still need to create a workspace and clone the sample repository.
Clone the the AzureML-Examples repository.
git clone https://github.com/Azure/azureml-examples.git **depth 1
Start the notebook server from the directory that contains the clone.
jupyter notebook
Some of the samples use MLClient.from_config()
to connect to a workspace. For these samples to work, you need a configuration file in a directory on the path to the sample.
The configuration file is created for you on the Azure Machine Learning compute instance. To use the code on your own notebook server or DSVM, create the configuration file manually. Use either of the following methods:
Write a configuration file file (aml_config/config.json) in the root of your cloned repository.
Download the workspace configuration file:
Explore the AzureML-Examples repository to discover what Azure Machine Learning can do.
For more examples of MLOps, see https://github.com/Azure/mlops-v2.
Try these tutorials:
Events
Take the Microsoft Learn Challenge
Nov 19, 11 PM - Jan 10, 11 PM
Ignite Edition - Build skills in Microsoft Azure and earn a digital badge by January 10!
Register nowTraining
Module
Explore developer tools for workspace interaction - Training
Learn how you can interact with the Azure Machine Learning workspace. You can use the Azure Machine Learning studio, the Python SDK (v2), or the Azure CLI (v2).
Certification
Microsoft Certified: Azure Data Scientist Associate - Certifications
Manage data ingestion and preparation, model training and deployment, and machine learning solution monitoring with Python, Azure Machine Learning and MLflow.