Skip to content

Commit d64d123

Browse files
authored
Merge pull request #111774 from Blackmist/notes
making info more visible
2 parents 887d633 + 0f25dc8 commit d64d123

7 files changed

+29
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ 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)]
94+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
9595
9696
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:
9797

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ To start a run of your experiment, use the following steps:
7575
az login
7676
```
7777

78-
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
78+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
7979

8080
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:
8181

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ 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)]
41+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
4242

4343
For other methods of authenticating, see [Sign in with Azure CLI](https://docs.microsoft.com/cli/azure/authenticate-azure-cli?view=azure-cli-latest).
4444

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ For more information, see the [ScriptRunConfig](https://docs.microsoft.com/pytho
420420
421421
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.
422422
423-
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
423+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
424424
425425
### Create run configuration
426426

articles/machine-learning/reference-azure-machine-learning-cli.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,31 @@ The CLI is not a replacement for the Azure Machine Learning SDK. It is a complem
3131

3232
* To use the CLI, you must have 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

34-
* The [Azure CLI](https://docs.microsoft.com/cli/azure/?view=azure-cli-latest).
34+
* 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).
35+
36+
If you use the [Azure Cloud Shell](https://azure.microsoft.com//features/cloud-shell/), the CLI is accessed through the browser and lives in the cloud.
3537

3638
## Full reference docs
3739

3840
Find the [full reference docs for the azure-cli-ml extension of Azure CLI](https://docs.microsoft.com/cli/azure/ext/azure-cli-ml/?view=azure-cli-latest).
3941

42+
## Connect the CLI to your Azure subscription
43+
44+
> [!IMPORTANT]
45+
> If you are using the Azure Cloud Shell, you can skip this section. The cloud shell automatically authenticates you using the account you log into your Azure subscription.
46+
47+
There are several ways that you can authenticate to your Azure subscription from the CLI. The most basic is to interactively authenticate using a browser. To authenticate interactively, open a command line or terminal and use the following command:
48+
49+
```azurecli-interactive
50+
az login
51+
```
52+
53+
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.
54+
55+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
56+
57+
For other methods of authenticating, see [Sign in with Azure CLI](https://docs.microsoft.com/cli/azure/authenticate-azure-cli?view=azure-cli-latest).
58+
4059
## Install the extension
4160

4261
To install the Machine Learning CLI extension, use the following command:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ 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)]
81+
[!INCLUDE [select-subscription](../../includes/machine-learning-cli-subscription.md)]
8282

8383
## Install the machine learning extension
8484

includes/machine-learning-cli-subscription.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ms.date: 03/26/2020
66
ms.author: larryfr
77
---
88

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).
9+
> [!TIP]
10+
> 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`.
11+
>
12+
> To select another subscription, use the `az account set -s <subscription name or ID>` command and specify the subscription name or 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)