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-training-vnet.md
+24-30Lines changed: 24 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,20 +165,18 @@ az ml compute create --name myci --resource-group rg --workspace-name ws --vnet-
165
165
> The following code snippet assumes that `ml_client` points to an Azure Machine Learning workspace that uses a private endpoint to participate in a VNet. For more information on using `ml_client`, see the tutorial [Azure Machine Learning in a day](tutorial-azure-ml-in-a-day.md).
@@ -268,21 +266,17 @@ az ml compute create --name myci --resource-group rg --workspace-name ws --vnet-
268
266
> The following code snippet assumes that `ml_client` points to an Azure Machine Learning workspace that uses a private endpoint to participate in a VNet. For more information on using `ml_client`, see the tutorial [Azure Machine Learning in a day](tutorial-azure-ml-in-a-day.md).
269
267
270
268
```python
271
-
from azure.ai.ml.entities import AmlCompute
272
-
273
-
# specify aml compute name.
274
-
cpu_compute_target ="cpu-cluster"
275
-
276
-
try:
277
-
ml_client.compute.get(cpu_compute_target)
278
-
exceptException:
279
-
print("Creating a new cpu compute target...")
280
-
# Replace "yourvnet" and "yoursubnet" with your VNet and subnet.
0 commit comments