Quickstart: Create workspace resources you need to get started with Azure Machine Learning
In this quickstart, you'll create a workspace and then add compute resources to the workspace. You'll then have everything you need to get started with Azure Machine Learning.
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. The compute resources provide a pre-configured cloud-based environment you can use to train, deploy, automate, manage, and track machine learning models.
- An Azure account with an active subscription. Create an account for free.
Create the workspace
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 the Azure portal by using the credentials for your Azure subscription.
In the upper-left corner of the Azure portal, select the three bars, then + Create a resource.
Use the search bar to find Machine Learning.
Select Machine Learning.
In the Machine Learning pane, select Create to begin.
Provide the following information to configure your new workspace:
Field Description Workspace name Enter a unique name that identifies your workspace. In this example, we use docs-ws. Names must be unique across the resource group. Use a name that's easy to recall and to differentiate from workspaces created by others. 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. In this example, we use docs-aml. Location Select the location closest to your users and the data resources to create your workspace.
After you're finished configuring the workspace, select Review + Create.
Select Create to create the workspace.
It can take several minutes to create your workspace in the cloud.
When the process is finished, a deployment success message appears.
To view the new workspace, select Go to resource.
From the portal view of your workspace, select Launch studio to go to the Azure Machine Learning studio.
Create compute instance
You could install Azure Machine Learning on your own computer. But in this quickstart, you'll create an online compute resource that has a development environment already installed and ready to go. You'll use this online machine, a compute instance, for your development environment to write and run code in Python scripts and Jupyter notebooks.
Create a compute instance to use this development environment for the rest of the tutorials and quickstarts.
- If you didn't select Go to workspace in the previous section, sign in to Azure Machine Learning studio now, and select your workspace.
- On the left side, select Compute.
- Select +New to create a new compute instance.
- Supply a name, Keep all the defaults on the first page.
- Select Create.
In about two minutes, you'll see the State of the compute instance change from Creating to Running. It's now ready to go.
Create compute clusters
Next you'll create a compute cluster. Clusters allow you to distribute a training or batch inference process across a cluster of CPU or GPU compute nodes in the cloud.
Create a compute cluster that will autoscale between zero and four nodes:
- Still in the Compute section, in the top tab, select Compute clusters.
- Select +New to create a new compute cluster.
- Keep all the defaults on the first page, select Next.
- Name the cluster cpu-cluster. If this name already exists, add your initials to the name to make it unique.
- Leave the Minimum number of nodes at 0.
- Change the Maximum number of nodes to 4 if possible. Depending on your settings, you may have a smaller limit.
- Change the Idle seconds before scale down to 2400.
- Leave the rest of the defaults, and select Create.
In less than a minute, the State of the cluster will change from Creating to Succeeded. The list shows the provisioned compute cluster, along with the number of idle nodes, busy nodes, and unprovisioned nodes. Since you haven't used the cluster yet, all the nodes are currently unprovisioned.
When the cluster is created, it will have 0 nodes provisioned. The cluster does not incur costs until you submit a job. This cluster will scale down when it has been idle for 2,400 seconds (40 minutes). This will give you time to use it in a few tutorials if you wish without waiting for it to scale back up.
Quick tour of the studio
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 Author 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 modules.
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.
You already used the Manage section of the studio to create your compute resources. This section also lets you create and manage data and external services you link to your workspace.
From Azure Machine Learning studio, you can run diagnostics on your workspace to check your setup. To run diagnostics, select the '?' icon from the upper right corner of the page. Then select Run workspace diagnostics.
After diagnostics run, a list of any detected problems is returned. This list includes links to possible solutions.
Clean up resources
If you plan to continue now to the next tutorial, skip to Next steps.
Stop compute instance
If you're not going to use it now, stop the compute instance:
- In the studio, on the left, select Compute.
- In the top tabs, select Compute instances
- Select the compute instance in the list.
- On the top toolbar, select Stop.
Delete all resources
The resources that you created can be used as prerequisites to other Azure Machine Learning tutorials and how-to articles.
If you don't plan to use any of the resources that you created, delete them so you don't incur any charges:
In the Azure portal, select Resource groups on the far left.
From the list, select the resource group that you created.
Select Delete resource group.
Enter the resource group name. Then select Delete.
You now have an Azure Machine Learning workspace that contains:
- A compute instance to use for your development environment.
- A compute cluster to use for submitting training runs.
Use these resources to learn more about Azure Machine Learning and train a model with Python scripts.