Skip to content

Commit 9e576d3

Browse files
author
Mingwei He
committed
add empty lines in python code
1 parent 47a13f5 commit 9e576d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/machine-learning/how-to-identity-based-service-authentication.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,14 @@ primary_user_assigned_identity: <one of the UAI resource IDs in the above list>
9494
```python
9595
from azure.ai.ml import MLClient, load_workspace
9696
from azure.identity import DefaultAzureCredential
97+
9798
sub_id="<subscription ID>"
9899
rg_name="<resource group name>"
99100
ws_name="<workspace name>"
101+
100102
client = MLClient(DefaultAzureCredential(), sub_id, rg_name)
101103
wps = load_workspace("workspace_creation_with_multiple_UAIs.yml")
104+
102105
workspace = client.workspaces.begin_create(workspace=wps).result()
103106
```
104107

@@ -136,11 +139,14 @@ primary_user_assigned_identity: <one of the UAI resource IDs in the above list>
136139
```python
137140
from azure.ai.ml import MLClient, load_workspace
138141
from azure.identity import DefaultAzureCredential
142+
139143
sub_id="<subscription ID>"
140144
rg_name="<resource group name>"
141145
ws_name="<workspace name>"
146+
142147
client = MLClient(DefaultAzureCredential(), sub_id, rg_name)
143148
wps = load_workspace("workspace_update_with_multiple_UAIs.yml")
149+
144150
workspace = client.workspaces.begin_update(workspace=wps).result()
145151
```
146152

0 commit comments

Comments
 (0)