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
-[Visual Studio Code with the Azure Machine Learning extension](how-to-setup-vs-code.md)
28
29
29
30
## Prerequisites
30
31
31
32
- An Azure subscription with a free or paid version of Azure Machine Learning. If you don't have an Azure subscription, [create a free account before you begin](https://azure.microsoft.com/free/).
32
-
- If you want to run the Azure CLI commands in this article locally, you need [Azure CLI](/cli/azure/install-azure-cli) v. 2.38.0 or greater, with the V2 `ml` extension installed by running `az extension add -n ml`.
33
+
- If you want to run the Azure CLI commands in this article locally, you need [Azure CLI](/cli/azure/install-azure-cli) v. 2.38.0 or greaterinstalled.
33
34
34
-
If you use [Azure Cloud Shell](https://azure.microsoft.com//features/cloud-shell/), you don't need to install anything. The browser accesses the latest cloud version of Azure CLI and extensions.
35
+
If you use [Azure Cloud Shell](https://azure.microsoft.com//features/cloud-shell/), you don't need to install anything. The browser accesses the latest cloud version of Azure CLI and the Azure Machine Learning extension.
If you use Azure Cloud Shell from the Azure portal, you can skip this section. The cloud shell automatically authenticates you using the Azure subscription you're signed in with.
There are several ways to authenticate locally to your Azure subscription from Azure CLI. The simplest way is by using a browser.
49
50
50
-
To authenticate interactively, open a command line or terminal and run `az login`. If the CLI can open your default browser, it will do so and load a sign-in page. Otherwise, follow the command-line instructions to open a browser to [https://aka.ms/devicelogin](https://aka.ms/devicelogin) and enter an device authorization code.
51
+
To authenticate interactively, open a command line or terminal and run `az login`. If the CLI can open your default browser, it does so, and loads a sign-in page. Otherwise, follow the command-line instructions to open a browser to [https://aka.ms/devicelogin](https://aka.ms/devicelogin) and enter a device authorization code.
For other methods of authenticating, see [Sign in with Azure CLI](/cli/azure/authenticate-azure-cli).
53
56
54
57
## Create a resource group
55
58
56
-
The Azure Machine Learning workspace must be created inside an existing or new resource group. To create a new resource group, run the following command. Replace `<resource-group-name>` with the name and `<location>` with the Azure region to use for this resource group.
59
+
The Azure Machine Learning workspace must be created inside an existing or new resource group. To create a new resource group, run the following command. Replace `<resource-group-name>` with the name and `<location>` with the Azure region you want to use for this resource group.
57
60
58
61
> [!NOTE]
59
62
> Make sure to select a region where Azure Machine Learning is available. For information, see [Products available by region](https://azure.microsoft.com/global-infrastructure/services/?products=machine-learning-service).
@@ -82,15 +85,15 @@ For more information on working with resource groups, see [az group](/cli/azure/
82
85
83
86
## Create a workspace
84
87
85
-
An Azure Machine Learning workspace requires various other services deployed as [dependent associated resources](./concept-workspace.md#associated-resources). When you use Azure CLI to create a workspace, the CLI can create the new associated resources or you can attach existing resources.
88
+
A deployed Azure Machine Learning workspace requires various other services as [dependent associated resources](./concept-workspace.md#associated-resources). When you use Azure CLI to create a workspace, the CLI can create the new associated resources or you can attach existing resources.
86
89
87
90
To create a new workspace with new automatically created dependent services, run the following command:
88
91
89
92
```azurecli-interactive
90
93
az ml workspace create -n <workspace-name> -g <resource-group-name>
91
94
```
92
95
93
-
To create a new workspace that uses existing associated resources, you first define the resources in a [YAML configuration file](#use-existing-resources). Then you reference the YAML file in the Azure CLI workspace creation command as follows:
96
+
To create a new workspace that uses existing associated resources, you first define the resources in a YAML configuration file, as described in the following section. Then you reference the YAML file in the Azure CLI workspace creation command as follows:
94
97
95
98
```azurecli-interactive
96
99
az ml workspace create -g <resource-group-name> --file <configuration-file>.yml
@@ -119,19 +122,19 @@ The output of the workspace creation command is similar to the following JSON. Y
119
122
}
120
123
```
121
124
122
-
### Use existing resources
125
+
### YAML configuration file
123
126
124
127
To use existing resources for a new workspace, you create a YAML configuration file that defines the resources. The following YAML code shows an example workspace configuration file:
You don't have to specify all the associated resources in the configuration file. You can specify one or more of the resources, and the others are automatically created.
131
+
You don't have to specify all the associated dependent resources in the configuration file. You can specify one or more of the resources, and the others are automatically created.
129
132
130
133
If you use an existing storage account for the workspace, it must meet the following criteria. These requirements apply only to the *default* storage account for the workspace.
131
134
132
135
- Not a premium account (Premium_LRS or Premium_GRS).
133
-
- Both Azure Blob and Azure File capabilities are enabled.
134
-
- For Azure Data Lake Storage, hierarchical namespace is disabled.
136
+
- Both Azure Blob and Azure File capabilities enabled.
137
+
- For Azure Data Lake Storage, hierarchical namespace disabled.
135
138
136
139
To use an existing Azure container registry with an Azure Machine Learning workspace, you must [enable the admin account](/azure/container-registry/container-registry-authentication#admin-account) on the container registry.
137
140
@@ -142,30 +145,30 @@ You must provide the existing resource IDs in the YAML file. You can get these I
You can configure several advanced configurations for workspaces.
157
+
All Azure Machine Learning V2 `az ml` commands communicate operational data, such as YAML parameters and metadata, to Azure Resource Manager. If your Azure Machine Learning workspace is public and isn't behind a virtual network, communications are secured by using HTTPS/TLS 1.2. No extra configuration is required.
155
158
156
-
### Configure workspace for private network connectivity
159
+
If your Azure Machine Learning workspace uses a private endpoint and virtual network, you must choose one of the following configurations to use Azure CLI:
157
160
158
-
All Azure Machine Learning V2 `ml` commands communicate operational data, such as YAML parameters and metadata, to Azure Resource Manager. If your Azure Machine Learning workspace is public and isn't behind a virtual network, communications are secured by using HTTPS/TLS 1.2, and no extra configuration is required.
161
+
- To communicate over the public internet, set the `--public-network-access` parameter in the YAML configuration file to `Enabled`.
159
162
160
-
If your Azure Machine Learning workspace uses a private endpoint and virtual network, you must choose one of the following configurations to use Azure Machine Learning CLI V2:
163
+
- To increase security and avoid communicating over the public internet, configure Azure Machine Learning to use private network connectivity with an Azure Private Link endpoint, as described in the following section.
161
164
162
-
- To communicate over the public internet, set the `--public-network-access` parameter in the YAML configuration file to `Enabled`.
165
+
### Configure workspace for private network connectivity
163
166
164
-
- To increase security and avoid communicating over the public internet, configure Azure Machine Learning to use private network connectivity with an Azure Private Link endpoint.
167
+
Depending on your use case and organizational requirements, you can configure Azure Machine Learning to use private network connectivity. You can use the Azure CLI to deploy a workspace and a Private Link endpoint for the workspace resource.
165
168
166
169
Use the following process to secure communications with Azure Resource Manager by using Private Link:
167
170
168
-
1.[Secure your Azure Machine Learning workspace inside a virtual network using a private endpoint](how-to-configure-private-link.md).
171
+
1.[Configure a private endpoint for your Azure Machine Learning workspace](how-to-configure-private-link.md).
169
172
1.[Create a private link for managing Azure resources](/azure/azure-resource-manager/management/create-private-link-access-portal).
170
173
1.[Create a private endpoint](/azure/azure-resource-manager/management/create-private-link-access-portal#create-private-endpoint) for the private link created in the previous step.
171
174
@@ -174,11 +177,7 @@ For more information on using a private endpoint and virtual network with your w
174
177
> [!IMPORTANT]
175
178
> To configure the private link for Azure Resource Manager, you must be the **Owner** of the Azure subscription, and an **Owner** or **Contributor** on the root management group. For more information, see [Create a private link for managing Azure resources](/azure/azure-resource-manager/management/create-private-link-access-portal).
176
179
177
-
### Configure workspace for private network connectivity
178
-
179
-
Depending on your use case and organizational requirements, you can configure Azure Machine Learning to use private network connectivity. You can use the Azure CLI to deploy a workspace and a Private Link endpoint for the workspace resource.
180
-
181
-
When you use Private Link, your workspace can't use Azure Container Registry to build Docker images. In the YAML workspace configuration file, you must set the `image_build_compute` property to a CPU compute cluster name to use for Docker image environment building. You can also specify that the private link workspace isn't accessible over the internet by setting the `public_network_access` property to `Disabled`.
180
+
When you use Private Link, your workspace can't use Azure Container Registry to build Docker images. In your YAML workspace configuration file, you must set the `image_build_compute` property to a CPU compute cluster name to use for Docker image environment building. You also specify that the private link workspace isn't accessible over the internet by setting the `public_network_access` property to `Disabled`.
By default, workspace metadata is stored in an Azure Cosmos DB instance that Microsoft maintains, and encrypted using Microsoft-managed keys. Instead of using the Microsoft-managed key, you can provide your own key. Using your own key creates an extra set of resources in your Azure subscription to store your data.
242
246
243
247
> [!NOTE]
244
-
> Azure Cosmos DB isn't used to store information such as model performance, information logged by experiments, or information logged from your model deployments.
248
+
> Azure Cosmos DB isn't used to store model performance information, information logged by experiments, or information logged from your model deployments.
245
249
246
250
To create a workspace that uses your own key, use the `customer_managed_key` parameter in the YAML workspace configuration file, and specify the resource ID of the containing `key_vault` and the `key_uri` of the key within the vault.
247
251
@@ -250,7 +254,7 @@ To create a workspace that uses your own key, use the `customer_managed_key` par
250
254
To learn more about the resources that are created when you use your own key for encryption, see [Data encryption with Azure Machine Learning](./concept-data-encryption.md#azure-cosmos-db).
251
255
252
256
> [!NOTE]
253
-
> To manage the added data encryption resources, use Identity and Access Management to authorize the Machine Learning App with contributor permissions on your subscription.
257
+
> To manage the added data encryption resources, use Identity and Access Management to authorize the Machine Learning App with **Contributor** permissions on your subscription.
254
258
255
259
### High business impact workspace
256
260
@@ -260,6 +264,8 @@ For more information on customer-managed keys and high business impact workspace
260
264
261
265
## Use Azure CLI to manage workspaces
262
266
267
+
You can use the [az ml workspace](/cli/azure/ml/workspace) commands to manage workspaces.
268
+
263
269
### Get workspace information
264
270
265
271
To get information about a workspace, use the following command:
@@ -288,7 +294,7 @@ For more information, see [az ml workspace update](/cli/azure/ml/workspace#az-ml
288
294
289
295
### Sync keys for dependent resources
290
296
291
-
If you change access keys for one of the resources your workspace uses, it takes about an hour for the workspace to synchronize to the new key. To force the workspace to sync the new keys immediately, use the following command:
297
+
If you change access keys for one of the resources your workspace uses, it takes about an hour for the workspace to synchronize to the new keys. To force the workspace to sync the new keys immediately, use the following command:
292
298
293
299
```azurecli-interactive
294
300
az ml workspace sync-keys -n <workspace-name> -g <resource-group-name>
@@ -297,6 +303,16 @@ az ml workspace sync-keys -n <workspace-name> -g <resource-group-name>
297
303
- For more information on the `sync-keys` command, see [az ml workspace sync-keys](/cli/azure/ml/workspace#az-ml-workspace-sync-keys).
298
304
- For more information on changing keys, see [Regenerate storage access keys](how-to-change-storage-access-key.md).
299
305
306
+
### Move a workspace
307
+
308
+
Moving an Azure Machine Learning workspace is currently in preview. For more information, see [Move Azure Machine Learning workspaces between subscriptions (preview)](how-to-move-workspace.md).
309
+
310
+
### Delete the Azure container registry
311
+
312
+
The Azure Machine Learning workspace uses Azure Container Registry for some operations, and automatically creates a Container Registry instance when it first needs one.
Deleting a workspace doesn't delete the application insight, storage account, key vault, or container registry used by the workspace. Deleting the resource group deletes the workspace and all other Azure resources in the resource group. To delete the resource group, use the following command:
329
+
Deleting a workspace doesn't delete the application insights, storage account, key vault, or container registry used by the workspace. To delete the workspace, the dependent resources, and all other Azure resources in the resource group, you can delete the resource group. To delete the resource group, use the following command:
314
330
315
331
```azurecli-interactive
316
332
az group delete -g <resource-group-name>
317
333
```
318
334
319
335
For more information, see [az ml workspace delete](/cli/azure/ml/workspace#az-ml-workspace-delete).
320
336
321
-
### Move the workspace
322
-
323
-
Moving a Azure Machine Learning workspace is currently in preview. For more information, see [Move Azure Machine Learning workspaces between subscriptions (preview)](how-to-move-workspace.md).
324
-
325
-
### Delete the Azure container registry
326
-
327
-
The Azure Machine Learning workspace uses Azure Container Registry for some operations, and automatically creates a Container Registry instance when it first needs one.
Copy file name to clipboardExpand all lines: articles/machine-learning/includes/machine-learning-application-insight.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,6 @@ ms.author: larryfr
7
7
---
8
8
9
9
> [!TIP]
10
-
> An Azure Application Insights instance is created when you create the workspace. You can delete the Application Insights instance after cluster creation if you want. Deleting it limits the information gathered from the workspace, and may make it more difficult to troubleshoot problems. __If you delete the Application Insights instance created by the workspace, you cannot re-create it without deleting and recreating the workspace__.
10
+
> An Azure Application Insights instance is created when you create the workspace. You can delete the Application Insights instance after cluster creation if you want. Deleting it limits the information gathered from the workspace, and might make it more difficult to troubleshoot problems. **If you delete the Application Insights instance created by the workspace, the only way to recreate it is to delete and recreate the workspace**.
11
11
>
12
-
> For more information on using this Application Insights instance, see [Monitor and collect data from Machine Learning web service endpoints](../how-to-enable-app-insights.md).
12
+
> For more information on using the Application Insights instance, see [Monitor and collect data from Machine Learning web service endpoints](../how-to-enable-app-insights.md).
0 commit comments