Skip to content

Commit 3fe644b

Browse files
authored
try to fix Acrolinx error
1 parent 45f4dd1 commit 3fe644b

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

articles/machine-learning/how-to-deploy-custom-container.md

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -141,36 +141,34 @@ Connect to Azure Machine Learning Workspace, configure workspace details, and ge
141141

142142
1. Import the required libraries:
143143

144-
```python
145-
# import required libraries
146-
from azure.ai.ml import MLClient
147-
from azure.ai.ml.entities import (
148-
ManagedOnlineEndpoint,
149-
ManagedOnlineDeployment,
150-
Model,
151-
Environment,
152-
CodeConfiguration,
153-
)
154-
from azure.identity import DefaultAzureCredential
155-
```
156-
157-
1. Configure workspace details and get a handle to the workspace:
144+
```python
145+
# import required libraries
146+
from azure.ai.ml import MLClient
147+
from azure.ai.ml.entities import (
148+
ManagedOnlineEndpoint,
149+
ManagedOnlineDeployment,
150+
Model,
151+
Environment,
152+
CodeConfiguration,
153+
)
154+
from azure.identity import DefaultAzureCredential
155+
```
158156

159-
```python
160-
# enter details of your AzureML workspace
161-
subscription_id = "<SUBSCRIPTION_ID>"
162-
resource_group = "<RESOURCE_GROUP>"
163-
workspace = "<AZUREML_WORKSPACE_NAME>"
164-
```
157+
2. Configure workspace details and get a handle to the workspace:
165158

166-
```python
167-
# get a handle to the workspace
168-
ml_client = MLClient(
169-
DefaultAzureCredential(), subscription_id, resource_group, workspace
170-
)
171-
```
159+
```python
160+
# enter details of your AzureML workspace
161+
subscription_id = "<SUBSCRIPTION_ID>"
162+
resource_group = "<RESOURCE_GROUP>"
163+
workspace = "<AZUREML_WORKSPACE_NAME>"
164+
165+
# get a handle to the workspace
166+
ml_client = MLClient(
167+
DefaultAzureCredential(), subscription_id, resource_group, workspace
168+
)
169+
```
172170

173-
For more information, see [Deploy machine learning models to managed online endpoint using Python SDK v2](how-to-deploy-managed-online-endpoint-sdk-v2.md).
171+
For more information, see [Deploy machine learning models to managed online endpoint using Python SDK v2](how-to-deploy-managed-online-endpoint-sdk-v2.md).
174172

175173
### Configure online endpoint
176174

0 commit comments

Comments
 (0)