Skip to content

Commit a3a2d01

Browse files
committed
updates for freshness
1 parent c97eb53 commit a3a2d01

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

articles/machine-learning/how-to-managed-network-compute.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ ms.subservice: enterprise-readiness
88
ms.reviewer: None
99
ms.author: larryfr
1010
author: Blackmist
11-
ms.date: 08/22/2023
11+
ms.date: 08/16/2024
1212
ms.topic: how-to
1313
---
1414

1515
# Use managed compute in a managed virtual network
1616

1717
Learn how to configure compute clusters or compute instances in an Azure Machine Learning managed virtual network.
1818

19-
When using a managed network, compute resources managed by Azure Machine Learning can participate in the virtual network. Azure Machine Learning _compute clusters_, _compute instances_, and _managed online endpoints_ are created in the managed network.
19+
When you use a managed network, compute resources managed by Azure Machine Learning can participate in the virtual network. Azure Machine Learning _compute clusters_, _compute instances_, and _managed online endpoints_ are created in the managed network.
2020

2121
This article focuses on configuring compute clusters and compute instances in a managed network. For information on managed online endpoints, see [secure online endpoints with network isolation](how-to-secure-online-endpoint.md).
2222

@@ -57,7 +57,7 @@ Before following the steps in this article, make sure you have the following pre
5757
> pip install --upgrade azure-ai-ml azure-identity
5858
> ```
5959
60-
* The examples in this article assume that your code begins with the following Python. This code imports the classes required when creating a workspace with managed VNet, sets variables for your Azure subscription and resource group, and creates the `ml_client`:
60+
* The examples in this article assume that your code begins with the following Python. This code imports the classes required when creating a workspace with managed virtual network, sets variables for your Azure subscription and resource group, and creates the `ml_client`:
6161
6262
```python
6363
from azure.ai.ml import MLClient
@@ -74,9 +74,15 @@ Before following the steps in this article, make sure you have the following pre
7474
# Replace with the values for your Azure subscription and resource group.
7575
subscription_id = "<SUBSCRIPTION_ID>"
7676
resource_group = "<RESOURCE_GROUP>"
77+
workspace_name = "<WORKSPACE_NAME>"
7778
7879
# get a handle to the subscription
79-
ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group)
80+
ml_client = MLClient(
81+
workspace_name=workspace_name,
82+
subscription_id=subscription_id,
83+
resource_group_name=resource_group,
84+
credential=DefaultAzureCredential()
85+
)
8086
```
8187
8288
# [Studio](#tab/studio)
@@ -87,10 +93,10 @@ Before following the steps in this article, make sure you have the following pre
8793
8894
## Configure compute resources
8995
90-
Use the tabs below to learn how to configure compute clusters and compute instances in a managed virtual network:
96+
Use the following tabs to learn how to configure compute clusters and compute instances in a managed virtual network:
9197
9298
> [!TIP]
93-
> When using a managed virtual network, compute clusters and compute instances are automatically created in the managed network. The steps below focus on configuring the compute resources to not use a public IP address.
99+
> When using a managed virtual network, compute clusters and compute instances are automatically created in the managed network. The following steps focus on configuring the compute resources to not use a public IP address.
94100
95101
# [Azure CLI](#tab/azure-cli)
96102
@@ -115,7 +121,7 @@ from azure.ai.ml.entities import AmlCompute
115121

116122
# Create a compute cluster
117123
compute_cluster = AmlCompute(
118-
name="mycomputecluster,
124+
name="mycomputecluster",
119125
size="STANDARD_D2_V2",
120126
min_instances=0,
121127
max_instances=4,

0 commit comments

Comments
 (0)