Skip to content

Commit 1ea6cb1

Browse files
Merge pull request #109144 from Blackmist/cli-note
adding text about selecting the subscription for your workspace.
2 parents 252e07c + b4f01c6 commit 1ea6cb1

7 files changed

+24
-1
lines changed

articles/machine-learning/how-to-change-storage-access-key.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ To update Azure Machine Learning to use the new key, use the following steps:
9090
az login
9191
```
9292
93+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
94+
9395
1. To update the workspace to use the new key, use the following command. Replace `myworkspace` with your Azure Machine Learning workspace name, and replace `myresourcegroup` with the name of the Azure resource group that contains the workspace.
9496
9597
```azurecli-interactive

articles/machine-learning/how-to-deploy-custom-docker-image.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ If you've already trained or deployed models using Azure Machine Learning, a con
9191
9292
Follow the prompts to authenticate to the subscription.
9393
94+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
95+
9496
2. Use the following command to list the container registry for the workspace. Replace `<myworkspace>` with your Azure Machine Learning workspace name. Replace `<resourcegroup>` with the Azure resource group that contains your workspace:
9597
9698
```azurecli-interactive

articles/machine-learning/how-to-manage-runs.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This article shows examples of the following tasks:
2929

3030
You'll need the following items:
3131

32-
* An Azure subscription. If you dont have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://aka.ms/AMLFree) today.
32+
* An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://aka.ms/AMLFree) today.
3333

3434
* An [Azure Machine Learning workspace](how-to-manage-workspace.md).
3535

@@ -74,6 +74,8 @@ To start a run of your experiment, use the following steps:
7474
```azurecli-interactive
7575
az login
7676
```
77+
78+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
7779

7880
1. Attach a workspace configuration to the folder that contains your training script. Replace `myworkspace` with your Azure Machine Learning workspace. Replace `myresourcegroup` with the Azure resource group that contains your workspace:
7981

articles/machine-learning/how-to-manage-workspace-cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ az login
3838

3939
If the CLI can open your default browser, it will do so and load a sign-in page. Otherwise, you need to open a browser and follow the instructions on the command line. The instructions involve browsing to [https://aka.ms/devicelogin](https://aka.ms/devicelogin) and entering an authorization code.
4040

41+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
42+
4143
For other methods of authenticating, see [Sign in with Azure CLI](https://docs.microsoft.com/cli/azure/authenticate-azure-cli?view=azure-cli-latest).
4244

4345
## Install the machine learning extension

articles/machine-learning/how-to-set-up-training-targets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ For more information, see the [ScriptRunConfig](https://docs.microsoft.com/pytho
446446
447447
You can use [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest) and [Machine Learning CLI extension](reference-azure-machine-learning-cli.md) to create run configurations and submit runs on different compute targets. The following examples assume that you have an existing Azure Machine Learning Workspace and you have logged in to Azure using `az login` CLI command.
448448
449+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
450+
449451
### Create run configuration
450452
451453
The simplest way to create run configuration is to navigate the folder that contains your machine learning Python scripts, and use CLI command

articles/machine-learning/tutorial-train-deploy-model-cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ az login
7878

7979
If the CLI can open your default browser, it will do so and load a sign-in page. Otherwise, you need to open a browser and follow the instructions on the command line. The instructions involve browsing to [https://aka.ms/devicelogin](https://aka.ms/devicelogin) and entering an authorization code.
8080

81+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
82+
8183
## Install the machine learning extension
8284

8385
To install the machine learning extension, use the following command:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
author: Blackmist
3+
ms.service: machine-learning
4+
ms.topic: include
5+
ms.date: 03/26/2020
6+
ms.author: larryfr
7+
---
8+
9+
After logging in, you see a list of subscriptions associated with your Azure account. The subscription information with `isDefault: true` is the currently activated subscription for Azure CLI commands. This subscription must be the same one that contains your Azure Machine Learning workspace. You can find the subscription ID from the [Azure portal](https://portal.azure.com) by visiting the overview page for your workspace. You can also use the SDK to get the subscription ID from the workspace object. For example, `Workspace.from_config().subscription_id`.
10+
11+
To select another subscription, use the [az account set](https://docs.microsoft.com/cli/azure/account#az-account-set) command with the subscription ID to switch to. For more information about subscription selection, see [Use multiple Azure Subscriptions](https://docs.microsoft.com/cli/azure/manage-azure-subscriptions-azure-cli?view=azure-cli-latest).

0 commit comments

Comments
 (0)