Skip to content

Commit a2d20b0

Browse files
authored
Update how-to-use-batch-endpoint.md
1 parent ae71b70 commit a2d20b0

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

articles/machine-learning/batch-inference/how-to-use-batch-endpoint.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -54,37 +54,39 @@ You can follow along this sample in the following notebooks. In the cloned repos
5454

5555
### Connect to your workspace
5656

57-
1. First, let's connect to Azure Machine Learning workspace where we are going to work on.
57+
First, let's connect to Azure Machine Learning workspace where we are going to work on.
5858

59-
# [Azure ML CLI](#tab/cli)
60-
61-
```azurecli
62-
az account set --subscription <subscription>
63-
az configure --defaults workspace=<workspace> group=<resource-group> location=<location>
64-
```
65-
66-
# [Azure ML SDK for Python](#tab/sdk)
67-
68-
The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work with all the artifacts you create when you use Azure Machine Learning. In this section, we'll connect to the workspace in which you'll perform deployment tasks.
69-
70-
1. Import the required libraries:
71-
72-
```python
73-
from azure.ai.ml import MLClient, Input
74-
from azure.ai.ml.entities import BatchEndpoint, BatchDeployment, Model, AmlCompute, Data, BatchRetrySettings
75-
from azure.ai.ml.constants import AssetTypes, BatchDeploymentOutputAction
76-
from azure.identity import DefaultAzureCredential
77-
```
78-
79-
2. Configure workspace details and get a handle to the workspace:
80-
81-
```python
82-
subscription_id = "<subscription>"
83-
resource_group = "<resource-group>"
84-
workspace = "<workspace>"
85-
86-
ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, workspace)
87-
```
59+
# [Azure ML CLI](#tab/cli)
60+
61+
```azurecli
62+
az account set --subscription <subscription>
63+
az configure --defaults workspace=<workspace> group=<resource-group> location=<location>
64+
```
65+
66+
# [Azure ML SDK for Python](#tab/sdk)
67+
68+
The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work with all the artifacts you create when you use Azure Machine Learning. In this section, we'll connect to the workspace in which you'll perform deployment tasks.
69+
70+
1. Import the required libraries:
71+
72+
```python
73+
from azure.ai.ml import MLClient, Input
74+
from azure.ai.ml.entities import BatchEndpoint, BatchDeployment, Model, AmlCompute, Data, BatchRetrySettings
75+
from azure.ai.ml.constants import AssetTypes, BatchDeploymentOutputAction
76+
from azure.identity import DefaultAzureCredential
77+
```
78+
79+
2. Configure workspace details and get a handle to the workspace:
80+
81+
```python
82+
subscription_id = "<subscription>"
83+
resource_group = "<resource-group>"
84+
workspace = "<workspace>"
85+
86+
ml_client = MLClient(DefaultAzureCredential(), subscription_id, resource_group, workspace)
87+
```
88+
89+
---
8890

8991
### Create compute
9092

0 commit comments

Comments
 (0)