Skip to content

Commit d336cf4

Browse files
authored
Add section for setting the CLI default
1 parent 49d67ff commit d336cf4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/machine-learning/how-to-autoscale-endpoints.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ To enable autoscale for an online endpoint, you first define an autoscale profil
4646

4747
[!INCLUDE [cli v2](includes/machine-learning-cli-v2.md)]
4848

49+
If you haven't already set the defaults for the Azure CLI, save your default settings. To avoid passing in the values for your subscription, workspace, and resource group multiple times, run this code:
50+
51+
```azurecli
52+
az account set --subscription <subscription ID>
53+
az configure --defaults workspace=<Azure Machine Learning workspace name> group=<resource group>
54+
```
55+
4956
1. Set the endpoint and deployment names:
5057

5158
:::code language="azurecli" source="~/azureml-examples-main/cli/deploy-moe-autoscale.sh" ID="set_endpoint_deployment_name" :::

0 commit comments

Comments
 (0)