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-use-serverless-compute.md
+56-56Lines changed: 56 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,33 +138,33 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
138
138
139
139
# [Python SDK](#tab/python)
140
140
141
-
```python
142
-
from azure.ai.ml import MLClient
143
-
from azure.identity import DefaultAzureCredential
144
-
145
-
subscription_id="<your-subscription-id>"
146
-
resource_group="<your-resource-group>"
147
-
workspace="<your-workspace-name>"
148
-
149
-
ml_client= MLClient(
150
-
DefaultAzureCredential(),
151
-
subscription_id,
152
-
resource_group,
153
-
workspace
154
-
)
155
-
156
-
# Get workspace details
157
-
ws= ml_client.workspaces.get(name=workspace)
158
-
print(ws)
159
-
160
-
```
141
+
```python
142
+
from azure.ai.ml import MLClient
143
+
from azure.identity import DefaultAzureCredential
144
+
145
+
subscription_id="<your-subscription-id>"
146
+
resource_group="<your-resource-group>"
147
+
workspace="<your-workspace-name>"
148
+
149
+
ml_client= MLClient(
150
+
DefaultAzureCredential(),
151
+
subscription_id,
152
+
resource_group,
153
+
workspace
154
+
)
155
+
156
+
# Get workspace details
157
+
ws= ml_client.workspaces.get(name=workspace)
158
+
print(ws)
159
+
160
+
```
161
161
162
162
# [Azure CLI](#tab/cli)
163
163
164
-
```bash
165
-
166
-
az ml workspace show --name <wsname>--resource-group <rgname>
167
-
```
164
+
```bash
165
+
166
+
az ml workspace show --name <wsname>--resource-group <rgname>
167
+
```
168
168
---
169
169
Look for the user assigned identities in the output. If it's missing, create a new workspace with a user assigned managed identity by following the instructions here: Set up service authentication - Azure Machine Learning | Microsoft Learn
170
170
@@ -173,41 +173,41 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
173
173
174
174
# [Python SDK](#tab/python)
175
175
176
-
```python
177
-
from azure.ai.ml import command
178
-
from azure.ai.ml import MLClient # Handle to the workspace
179
-
from azure.identity import DefaultAzureCredential # Authentication package
180
-
from azure.ai.ml.entities import ResourceConfiguration
181
-
from azure.ai.ml.entities import ManagedIdentityConfiguration
182
-
183
-
credential= DefaultAzureCredential()
184
-
# Get a handle to the workspace. You can find the info on the workspace tab on ml.azure.com
0 commit comments