Skip to content

Commit 54fed2f

Browse files
authored
Update how-to-secure-workspace-vnet.md
1 parent d1f136a commit 54fed2f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

articles/machine-learning/how-to-secure-workspace-vnet.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ Azure Container Registry can be configured to use a private endpoint. Use the fo
273273
az ml workspace update --name myworkspace --resource-group myresourcegroup --image-build-compute mycomputecluster
274274
```
275275
276+
You can switch back to serverless compute by executing the same command and leaving the `mycomputecluster` reference empty.
277+
276278
# [Python SDK](#tab/python)
277279
278280
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
297299
# Update to use cpu-cluster for image builds
298300
ws.image_build_compute="cpu-cluster"
299301
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:
301304
# ws.image_build_compute = ''
302305
# ml_client.workspaces.begin_update(ws)
303306
```
@@ -311,12 +314,6 @@ Azure Container Registry can be configured to use a private endpoint. Use the fo
311314
312315
---
313316
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-
320317
> [!TIP]
321318
> 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.
322319

0 commit comments

Comments
 (0)