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
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-secure-workspace-vnet.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -273,6 +273,8 @@ Azure Container Registry can be configured to use a private endpoint. Use the fo
273
273
az ml workspace update --name myworkspace --resource-group myresourcegroup --image-build-compute mycomputecluster
274
274
```
275
275
276
+
You can switch back to serverless compute by executing the same command and leaving the `mycomputecluster` reference empty.
277
+
276
278
# [Python SDK](#tab/python)
277
279
278
280
The following code snippet demonstrates how to update the workspace to set a build compute using the [Azure Machine Learning SDK](/python/api/overview/azure/ai-ml-readme). Replace `mycomputecluster` with the name of the cluster to use:
@@ -297,7 +299,8 @@ Azure Container Registry can be configured to use a private endpoint. Use the fo
297
299
# Update to use cpu-cluster for image builds
298
300
ws.image_build_compute="cpu-cluster"
299
301
ml_client.workspaces.begin_update(ws)
300
-
# To switch back to using ACR to build (if ACR is not in the VNet):
302
+
303
+
# To switch back to serverless compute:
301
304
# ws.image_build_compute = ''
302
305
# ml_client.workspaces.begin_update(ws)
303
306
```
@@ -311,12 +314,6 @@ Azure Container Registry can be configured to use a private endpoint. Use the fo
311
314
312
315
---
313
316
314
-
> [!TIP]
315
-
> If you have configured your image build compute to use a compute cluster and want to reverse this decision, execute the same command but leave the image-build-compute reference empty:
316
-
> ```azurecli
317
-
> az ml workspace update --name myworkspace --resource-group myresourcegroup --image-build-compute ''
318
-
> ```
319
-
320
317
> [!TIP]
321
318
> When ACR is behind a VNet, you can also [disable public access](../container-registry/container-registry-access-selected-networks.md#disable-public-network-access) to it.
0 commit comments