You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enable virtual network. Specify the **Resource group**, **Virtual network**, and **Subnet** to create the compute instance inside an Azure Virtual Network (vnet). You can also select __No public IP__ (preview) to prevent the creation of a public IP address, which requires a private link workspace. You must also satisfy these [network requirements](./how-to-secure-training-vnet.md) for virtual network setup.
140
-
* Assign the computer to another user. For more about assigning to other users, see [Create on behalf of](#create-on-behalf-of-preview).inel
140
+
* Assign the computer to another user. For more about assigning to other users, see [Create on behalf of](#create-on-behalf-of-preview)
141
141
* Provision with a setup script (preview) - for more information about how to create and use a setup script, see [Customize the compute instance with a script](how-to-customize-compute-instance.md).
142
142
* Add schedule (preview). Schedule times for the compute instance to automatically start and/or shutdown. See [schedule details](#schedule-automatic-start-and-stop-preview) below.
143
+
* Enable auto-stop (preview). Configure a compute instance to automatically shutdown if it is inactive. See [configure auto-stop](#configure-auto-stop-preview) for more details.
143
144
144
145
145
146
@@ -157,6 +158,58 @@ SSH access is disabled by default. SSH access can't be changed after creation.
157
158
158
159
---
159
160
161
+
## Configure auto-stop (preview)
162
+
To avoid getting charged for a compute instance that is switched on but inactive, you can configure auto-stop.
163
+
164
+
A compute instance is considered inactive if the below conditions are met:
165
+
* No active Jupyter Kernel sessions (this translates to no Notebooks usage via Jupyter, JupyterLab or Interactive notebooks)
166
+
* No active Jupyter terminal sessions
167
+
* No active AzureML runs or experiments
168
+
* No SSH connections
169
+
* No VS code connections; you must close your VS Code connection for your compute instance to be considered inactive. Sessions are auto-terminated if VS code detects no activity for 3 hours.
170
+
171
+
Note that activity on custom applications installed on the compute instance is not considered. There are also some basic bounds around inactivity time periods; CI must be inactive for a minimum of 15 mins and a maximum of 3 days.
172
+
173
+
This setting can be configured during CI creation or for existing CIs via the following interfaces:
174
+
* AzureML Studio
175
+
176
+
:::image type="content" source="media/how-to-create-attach-studio/idle-shutdown-advanced-settings.jpg" alt-text="Screenshot of the Advanced Settings page for creating a compute instance":::
177
+
:::image type="content" source="media/how-to-create-attach-studio/idle-shutdown-update.jpg" alt-text="Screenshot of the compute instance details page showing how to update an existing compute instance with idle shutdown":::
178
+
179
+
* REST API
180
+
181
+
Endpoint:
182
+
```
183
+
POST https://management.azure.com/subscriptions/{SUB_ID}/resourceGroups/{RG_NAME}/providers/Microsoft.MachineLearningServices/workspaces/{WS_NAME}/computes/{CI_NAME}/updateIdleShutdownSetting?api-version=2021-07-01
184
+
```
185
+
Body:
186
+
```JSON
187
+
{
188
+
"idleTimeBeforeShutdown": "PT30M" // this must be a string in ISO 8601 format
189
+
}
190
+
```
191
+
192
+
* CLIv2 (YAML) -- only configurable during new CI creation
193
+
194
+
```YAML
195
+
# Note that this is just a snippet for the idle shutdown property. Refer to the "Create" Azure CLI section for more information.
196
+
idle_time_before_shutdown_minutes: 30
197
+
```
198
+
199
+
* Python SDKv2 -- only configurable during new CI creation
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-deploy-custom-container.md
+2-25Lines changed: 2 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,35 +34,12 @@ Custom container deployments can use web servers other than the default Python F
34
34
35
35
## Prerequisites
36
36
37
-
* You must have an Azure resource group, in which you (or the service principal you use) need to have `Contributor` access. You'll have such a resource group if you configured your ML extension per the above article.
* Youmust have an Azure Machine Learning workspace. You'll have such a workspace if you configured your ML extension per the above article.
39
+
* You, or the service principal you use, must have `Contributor` access to the Azure Resource Group that contains your workspace. You'll have such a resource group if you configured your workspace using the quickstart article.
40
40
41
41
* To deploy locally, you must have [Docker engine](https://docs.docker.com/engine/install/) running locally. This step is **highly recommended**. It will help you debug issues.
42
42
43
-
# [Azure CLI](#tab/cli)
44
-
45
-
* Install and configure the Azure CLI and ML extension. For more information, see [Install, set up, and use the CLI (v2)](how-to-configure-cli.md).
46
-
47
-
* If you've not already set the defaults for Azure CLI, you should save your default settings. To avoid having to repeatedly pass in the values, run:
48
-
49
-
```azurecli
50
-
az account set --subscription <subscription id>
51
-
az configure --defaults workspace=<azureml workspace name> group=<resource group>
52
-
```
53
-
54
-
# [Python SDK](#tab/python)
55
-
56
-
* If you haven't installed Python SDK v2, please install with this command:
57
-
58
-
```azurecli
59
-
pip install --pre azure-ai-ml
60
-
```
61
-
62
-
For more information, see [Install the Azure Machine Learning SDK v2 for Python](/python/api/overview/azure/ml/installv2).
63
-
64
-
---
65
-
66
43
## Download source code
67
44
68
45
To follow along with this tutorial, download the source code below.
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-deploy-managed-online-endpoint-sdk-v2.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,8 @@ In this article, you learn how to deploy your machine learning model to managed
26
26
27
27
## Prerequisites
28
28
29
-
* 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://azure.microsoft.com/free/) today.
30
-
* The [Azure Machine Learning SDK v2 for Python](/python/api/overview/azure/ml/installv2).
31
-
* You must have an Azure resource group, and you (or the service principal you use) must have Contributor access to it.
32
-
* You must have an Azure Machine Learning workspace.
* To deploy locally, you must install [Docker Engine](https://docs.docker.com/engine/) on your local computer. We highly recommend this option, so it's easier to debug issues.
Copy file name to clipboardExpand all lines: articles/machine-learning/tutorial-create-secure-workspace.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -436,7 +436,7 @@ For more information on creating a compute cluster and compute cluster, includin
436
436
When Azure Container Registry is behind the virtual network, Azure Machine Learning can't use it to directly build Docker images (used for training and deployment). Instead, configure the workspace to use the compute cluster you created earlier. Use the following steps to create a compute cluster and configure the workspace to use it to build images:
437
437
438
438
1. Navigate to [https://shell.azure.com/](https://shell.azure.com/) to open the Azure Cloud Shell.
439
-
1. From the Cloud Shell, use the following command to install the 1.0 CLI for Azure Machine Learning:
439
+
1. From the Cloud Shell, use the following command to install the 2.0 CLI for Azure Machine Learning:
Copy file name to clipboardExpand all lines: includes/machine-learning-cli-prereqs.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,17 @@
2
2
author: blackmist
3
3
ms.service: machine-learning
4
4
ms.topic: include
5
-
ms.date: 10/26/2021
5
+
ms.date: 09/14/2022
6
6
ms.author: larryfr
7
7
---
8
8
9
9
Before following the steps in this article, make sure you have the following prerequisites:
10
10
11
11
* 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://azure.microsoft.com/free/).
12
12
13
-
* The [Azure CLI](/cli/azure/) and the `ml` extension to the Azure CLI. For more information, see [Install, set up, and use the CLI (v2) (preview)](../articles/machine-learning/how-to-configure-cli.md).
13
+
* The [Azure CLI](/cli/azure/) and the `ml` extension to the Azure CLI. For more information, see [Install, set up, and use the CLI (v2)](../articles/machine-learning/how-to-configure-cli.md).
14
14
15
15
> [!IMPORTANT]
16
16
> The CLI examples in this article assume that you are using the Bash (or compatible) shell. For example, from a Linux system or [Windows Subsystem for Linux](/windows/wsl/about).
17
17
18
-
* An Azure Machine Learning workspace. If you don't have one, use the steps in the [Install, set up, and use the CLI (v2) (preview)](../articles/machine-learning/how-to-configure-cli.md) to create one.
18
+
* An Azure Machine Learning workspace. If you don't have one, use the steps in the [Install, set up, and use the CLI (v2)](../articles/machine-learning/how-to-configure-cli.md) to create one.
Before following the steps in this article, make sure you have the following prerequisites:
10
+
11
+
* 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://azure.microsoft.com/free/).
12
+
13
+
* An Azure Machine Learning workspace. If you don't have one, use the steps in the [Quickstart: Create workspace resources](../articles/machine-learning/quickstart-create-resources.md) article to create one.
14
+
15
+
* The [Azure CLI](/cli/azure/) and the `ml` extension to the Azure CLI. For more information, see [Install, set up, and use the CLI (v2)](../articles/machine-learning/how-to-configure-cli.md).
16
+
17
+
> [!IMPORTANT]
18
+
> The CLI examples in this article assume that you are using the Bash (or compatible) shell. For example, from a Linux system or [Windows Subsystem for Linux](/windows/wsl/about).
19
+
20
+
* To install the Python SDK v2 (preview), use the following command:
21
+
22
+
```bash
23
+
pip install --pre azure-ai-ml
24
+
```
25
+
26
+
For more information, see [Install the Python SDK v2 for Azure Machine Learning](https://aka.ms/sdk-v2-install) (preview).
Before following the steps in this article, make sure you have the following prerequisites:
10
+
11
+
* 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://azure.microsoft.com/free/).
12
+
13
+
* An Azure Machine Learning workspace. If you don't have one, use the steps in the [Quickstart: Create workspace resources](../articles/machine-learning/quickstart-create-resources.md) article to create one.
14
+
15
+
* To install the Python SDK v2, use the following command:
16
+
17
+
```bash
18
+
pip install --pre azure-ai-ml
19
+
```
20
+
21
+
For more information, see [Install the Python SDK v2 for Azure Machine Learning](https://aka.ms/sdk-v2-install) (preview).
0 commit comments