title | titleSuffix | description | services | ms.service | ms.subservice | ms.topic | author | ms.author | ms.reviewer | ms.date | adobe-target | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Tutorial: Create workspace resources |
Azure Machine Learning |
Create an Azure Machine Learning workspace and cloud resources that can be used to train machine learning models. |
machine-learning |
azure-machine-learning |
core |
tutorial |
sdgilley |
sgilley |
sgilley |
07/22/2024 |
true |
mode-other |
In this tutorial, you'll create the resources you need to start working with Azure Machine Learning.
[!div class="checklist"]
- A workspace. To use Azure Machine Learning, you'll first need a workspace. The workspace is the central place to view and manage all the artifacts and resources you create.
- A compute instance. A compute instance is a pre-configured cloud-computing resource that you can use to train, automate, manage, and track machine learning models. A compute instance is the quickest way to start using the Azure Machine Learning SDKs and CLIs. You'll use it to run Jupyter notebooks and Python scripts in the rest of the tutorials.
In this tutorial, you'll create your resources in Azure Machine Learning studio.
Other ways to create a workspace are via the Azure portal or SDK, the CLI, Azure PowerShell, or the Visual Studio Code extension.
For other ways to create a compute instance, see Create a compute instance.
This video shows you how to create a workspace and compute instance in Azure Machine Learning studio. The steps are also described in the sections below.
[!VIDEO https://learn-video.azurefd.net/vod/player?id=9c6141c9-07f7-4661-ad77-6129297ddc0c]
- An Azure account with an active subscription. Create an account for free.
The workspace is the top-level resource for your machine learning activities, providing a centralized place to view and manage the artifacts you create when you use Azure Machine Learning.
If you already have a workspace, skip this section and continue to Create a compute instance.
If you don't yet have a workspace, create one now:
-
Sign in to Azure Machine Learning studio
-
Select Create workspace
-
Provide the following information to configure your new workspace:
Field Description Workspace name Enter a unique name that identifies your workspace. Names must be unique across the resource group. Use a name that's easy to recall and to differentiate from workspaces created by others. The workspace name is case-insensitive. Friendly name This name is not restricted by Azure naming rules. You can use spaces and special characters in this name. Hub A hub allows you to group related workspaces together and share resources. If you have access to a hub, select it here. If you don't have access to a hub, leave this blank. -
If you did not select a hub, provide the advanced information. If you selected a hub, these values are taken from the hub.
Field Description Subscription Select the Azure subscription that you want to use. Resource group Use an existing resource group in your subscription or enter a name to create a new resource group. A resource group holds related resources for an Azure solution. You need contributor or owner role to use an existing resource group. For more information about access, see Manage access to an Azure Machine Learning workspace. Region Select the Azure region closest to your users and the data resources to create your workspace. -
Select Create to create the workspace
Note
This creates a workspace along with all required resources. If you would like to more customization, use the Azure portal instead. See Create a workspace for more information.
You'll use the compute instance to run Jupyter notebooks and Python scripts in the rest of the tutorials. If you don't yet have a compute instance, create one now:
-
Select your workspace.
-
On the top right, select New.
-
Select Compute instance in the list.
:::image type="content" source="media/quickstart-create-resources/create-compute.png" alt-text="Screenshot shows create compute in the New list.":::
-
Supply a name.
-
Keep the default values for the rest of the page.
-
Select Review + Create.
-
Select Create.
The studio is your web portal for Azure Machine Learning. This portal combines no-code and code-first experiences for an inclusive data science platform.
Review the parts of the studio on the left-hand navigation bar:
-
The Authoring section of the studio contains multiple ways to get started in creating machine learning models. You can:
- Notebooks section allows you to create Jupyter Notebooks, copy sample notebooks, and run notebooks and Python scripts.
- Automated ML steps you through creating a machine learning model without writing code.
- Designer gives you a drag-and-drop way to build models using prebuilt components.
-
The Assets section of the studio helps you keep track of the assets you create as you run your jobs. If you have a new workspace, there's nothing in any of these sections yet.
-
The Manage section of the studio lets you create and manage compute and external services you link to your workspace. It's also where you can create and manage a Data labeling project.
:::image type="content" source="media/quickstart-create-resources/overview.png" alt-text="Screenshot of Azure Machine Learning studio." lightbox="media/quickstart-create-resources/overview.png":::
Use the sample notebooks available in studio to help you learn about how to train and deploy models. They're referenced in many of the other articles and tutorials.
- On the left navigation, select Notebooks.
- At the top, select Samples.
:::image type="content" source="media/quickstart-create-resources/samples.png" alt-text="Screenshot shows sample notebooks.":::
- Use notebooks in the SDK v2 folder for examples that show the current version of the SDK, v2.
- These notebooks are read-only, and are updated periodically.
- When you open a notebook, select the Clone this notebook button at the top to add your copy of the notebook and any associated files into your own files. A new folder with the notebook is created for you in the Files section.
When you clone a notebook from Samples, a copy is added to your files and you can start running or modifying it. Many of the tutorials mirror these sample notebooks.
But you could also create a new, empty notebook, then copy/paste code from a tutorial into the notebook. To do so:
-
Still in the Notebooks section, select Files to go back to your files,
-
Select + to add files.
-
Select Create new file.
:::image type="content" source="media/quickstart-create-resources/create-new-file.png" alt-text="Screenshot shows how to create a new file.":::
If you plan to continue now to other tutorials, skip to Next step.
If you're not going to use it now, stop the compute instance:
- In the studio, on the left menu, select Compute.
- In the top tabs, select Compute instances
- Select the compute instance in the list.
- On the top toolbar, select Stop.
[!INCLUDE aml-delete-resource-group]
You now have an Azure Machine Learning workspace, which contains a compute instance to use for your development environment.
Continue on to learn how to use the compute instance to run notebooks and scripts in the Azure Machine Learning cloud.
[!div class="nextstepaction"] Quickstart: Get to know Azure Machine Learning
Use your compute instance with the following tutorials to train and deploy a model.
Tutorial | Description |
---|---|
Upload, access, and explore your data in Azure Machine Learning | Store large data in the cloud and retrieve it from notebooks and scripts |
Model development on a cloud workstation | Start prototyping and developing machine learning models |
Train a model in Azure Machine Learning | Dive in to the details of training a model |
Deploy a model as an online endpoint | Dive in to the details of deploying a model |
Create production machine learning pipelines | Split a complete machine learning task into a multistep workflow. |
Want to jump right in? Browse code samples.