Skip to content

Commit 57e5178

Browse files
committed
Draft
1 parent 472e2a5 commit 57e5178

File tree

1 file changed

+47
-9
lines changed

1 file changed

+47
-9
lines changed

articles/machine-learning/tutorial-resource-manager-workspace.md

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: machine-learning
55
author: lobrien
66
ms.author: laobri
77
ms.custom: subject-armqs
8-
ms.date: 05/19/2020
8+
ms.date: 05/26/2020
99
ms.service: machine-learning
1010
ms.subservice: core
1111
ms.topic: tutorial
@@ -22,31 +22,69 @@ Azure machine learning workspaces organize all your machine learning assets from
2222

2323
* An Azure subscription. If you don't have an Azure subscription, create a [free account](https://aka.ms/AMLFree) before you begin.
2424

25+
* To use the CLI commands in this document from your **local environment**, you need the [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest)
26+
2527
## Create a workspace
2628

2729
### Review the template
2830

29-
The template used in this quickstart is from [Azure Quickstart templates](tk).
31+
The template used in this quickstart is from [Azure Quickstart templates](https://azure.microsoft.com/resources/templates/101-machine-learning-create/).
3032

31-
[!code-json[<Azure Resource Manager template create machine learning workspace](tk)]
33+
:::code language="json" source="~/quickstart-templates/101-machine-learning-create/azuredeploy.json":::
3234

3335
The following resources are defined in the template:
3436

35-
* tk
37+
* [Microsoft.MachineLearningServices/workspaces](/azure/templates/microsoft.machinelearningservices/workspaces): Create an Azure ML workspace. In this template, the location and name are parameters that the user can pass in or interactively enter.
3638

3739
### Deploy the template
3840

39-
cli deployment
41+
To use the template from the Azure CLI, login and choose your subscription (See [Sign in with Azure CLI](https://docs.microsoft.com/cli/azure/authenticate-azure-cli?view=azure-cli-latest)). Then, run:
42+
43+
```azurecli-interactive
44+
read -p "Enter a project name that is used for generating resource names:" projectName &&
45+
read -p "Enter the location (i.e. centralus):" location &&
46+
templateUri="https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-machine-learning-create/azuredeploy.json" &&
47+
resourceGroupName="${projectName}rg" &&
48+
workspaceName="${projectName}ws" &&
49+
az group create --name $resourceGroupName --location "$location" &&
50+
az deployment group create --resource-group $resourceGroupName --template-uri $templateUri --parameters workspaceName=$workspaceName location=$location &&
51+
echo "Press [ENTER] to continue ..." &&
52+
read
53+
```
54+
55+
When you run this, you will be prompted for:
56+
57+
1. A project name that will form the basis of the names of the created resource group and Azure ML workspace
58+
1. The Azure location in which you wish to make the deployment
4059

4160
## Review deployed resources
4261

43-
tk
62+
To see your Azure ML workspace:
63+
64+
1. Go to https://portal.azure.com
65+
1. Sign in
66+
1. Choose the workspace you just created
67+
68+
You will see the Azure Machine Learning homepage:
69+
70+
:::image type="content" source="media/tutorial-resource-manager-workspace/workspace-home.png" alt-text="Screenshot of the Azure ML workspace":::
71+
72+
To see all the resources associated with the deployment, click the link in the upper left with the workspace name (in the screenshot, **my_templated_ws**). This will take you to the resource group in the Azure portal. Note that the resource group name is `{projectName}rg` and the workspace is named `{projectName}ws`.
4473

4574
## Clean up resources
4675

47-
tk
76+
If you do not wish to use this workspace going forward, you can either delete it in the portal by clicking on the "Delete" button or from the CLI with:
77+
78+
```azurecli-interactive
79+
echo "Enter the Resource Group name:" &&
80+
read resourceGroupName &&
81+
az group delete --name $resourceGroupName &&
82+
echo "Press [ENTER] to continue ..."
83+
```
4884

4985
## Next steps
5086

51-
tk tutorial-1st-experiment-sdk-setup.md tk
52-
tk point users to Tutorial: Create and deploy your first Azure Resource Manager template to go through the process of creating a template. tk
87+
In this tutorial, you created an Azure Machine Learning workspace from an Azure Resource Manager template. If you'd like to explore Azure Machine Learning, continue with the tutorial.
88+
89+
> [!div class="nextstepaction"]
90+
> [Tutorial: Get started creating your first ML experiment with the Python SDK](tutorial-1st-experiment-sdk-setup.md)

0 commit comments

Comments
 (0)