Skip to content

Commit 5fc749a

Browse files
committed
Add a function parameter to MLClient.from_config() function calls in these files. . .
1 parent 8a064c5 commit 5fc749a

File tree

2 files changed

+22
-29
lines changed

2 files changed

+22
-29
lines changed

articles/machine-learning/how-to-manage-workspace.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ ms.service: machine-learning
77
ms.subservice: core
88
ms.author: deeikele
99
author: deeikele
10-
ms.reviewer: sgilley
11-
ms.date: 01/19/2024
10+
ms.reviewer: fsolomon
11+
ms.date: 02/06/2024
1212
ms.topic: how-to
13-
ms.custom: fasttrack-edit, sdkv2, devx-track-python
13+
ms.custom: fasttrack-edit, FY21Q4-aml-seo-hack, contperf-fy21q4, sdkv2, event-tier1-build-2022, ignite-2022, devx-track-python
1414
---
1515

1616
# Manage Azure Machine Learning workspaces in the portal or with the Python SDK (v2)
1717

1818
[!INCLUDE [sdk v2](includes/machine-learning-sdk-v2.md)]
1919

20-
In this article, you create, view, and delete [**Azure Machine Learning workspaces**](concept-workspace.md) for [Azure Machine Learning](overview-what-is-azure-machine-learning.md), using the [Azure portal](https://portal.azure.com) or the [SDK for Python](https://aka.ms/sdk-v2-install).
20+
In this article, you create, view, and delete [**Azure Machine Learning workspaces**](concept-workspace.md) for [Azure Machine Learning](overview-what-is-azure-machine-learning.md), using the [Azure portal](https://portal.azure.com) or the [SDK for Python](https://aka.ms/sdk-v2-install).
2121

2222
As your needs change or requirements for automation increase you can also manage workspaces [using the CLI](how-to-manage-workspace-cli.md), [Azure PowerShell](how-to-manage-workspace-powershell.md), or [via the VS Code extension](how-to-setup-vs-code.md).
2323

2424
## Prerequisites
2525

2626
* An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/) today.
27-
* If using the Python SDK:
27+
* If using the Python SDK:
2828
1. [Install the SDK v2](https://aka.ms/sdk-v2-install).
2929
1. Install azure-identity: `pip install azure-identity`. If in a notebook cell, use `%pip install azure-identity`.
3030
1. Provide your subscription details
@@ -84,7 +84,7 @@ If you have problems in accessing your subscription, see [Set up authentication
8484

8585
# [Portal](#tab/azure-portal)
8686

87-
1. Sign in to the [Azure portal](https://portal.azure.com/) by using the credentials for your Azure subscription.
87+
1. Sign in to the [Azure portal](https://portal.azure.com/) by using the credentials for your Azure subscription.
8888

8989
1. In the upper-left corner of Azure portal, select **+ Create a resource**.
9090

@@ -131,25 +131,24 @@ If you have problems in accessing your subscription, see [Set up authentication
131131
> [!IMPORTANT]
132132
> For more information on using a private endpoint and virtual network with your workspace, see [Network isolation and privacy](how-to-network-security-overview.md).
133133

134-
135134
# [Python SDK](#tab/python)
136135

137136
[!INCLUDE [sdk v2](includes/machine-learning-sdk-v2.md)]
138137

139138
[!notebook-python[](~/azureml-examples-main/sdk/python/resources/workspace/workspace.ipynb?name=basic_private_link_workspace_name)]
140-
139+
141140
This class requires an existing virtual network.
142141

143142
# [Portal](#tab/azure-portal)
144143

145144
1. The default network configuration is to use a **Public endpoint**, which is accessible on the public internet. To limit access to your workspace to an Azure Virtual Network you've created, under **Networking** you can instead select **Private with Internet Outbound** or **Private with Approved Outbound**. Then scroll down to configure the settings.
146145

147-
:::image type="content" source="media/how-to-manage-workspace/select-private-endpoint.png" alt-text="Private endpoint selection":::
146+
:::image type="content" source="media/how-to-manage-workspace/select-private-endpoint.png" alt-text="Private endpoint selection":::
148147

149148
1. Under **Workspace Inbound access** select **Add** to open the **Create private endpoint** form.
150149
1. On the **Create private endpoint** form, set the location, name, and virtual network to use. If you'd like to use the endpoint with a Private DNS Zone, select **Integrate with private DNS zone** and select the zone using the **Private DNS Zone** field. Select **OK** to create the endpoint.
151150

152-
:::image type="content" source="media/how-to-manage-workspace/create-private-endpoint.png" alt-text="Private endpoint creation":::
151+
:::image type="content" source="media/how-to-manage-workspace/create-private-endpoint.png" alt-text="Private endpoint creation":::
153152

154153
1. If you selected **Private with Internet Outbound**, use the **Workspace Outbound access** section to configure the network and outbound rules.
155154

@@ -163,8 +162,6 @@ This class requires an existing virtual network.
163162

164163
By default, metadata for the workspace is stored in an Azure Cosmos DB instance that Microsoft maintains. This data is encrypted using Microsoft-managed keys.
165164

166-
167-
168165
#### Use your own data encryption key
169166

170167
You can provide your own key for data encryption. Doing so creates the Azure Cosmos DB instance that stores metadata in your Azure subscription. For more information, see [Customer-managed keys](concept-customer-managed-keys.md).
@@ -254,7 +251,7 @@ You can turn off all feedback opportunities for a workspace. When off, users of
254251
1. Go to workspace resource in the Azure portal
255252
1. Open **Tags** from left navigation panel
256253
1. Add the key value pair "ADMIN_HIDE_SURVEY: TRUE"
257-
1. Select **Apply**.
254+
1. Select **Apply**.
258255

259256
:::image type="content" source="media/how-to-manage-workspace/tags.png" alt-text="Screenshot shows setting tags to prevent feedback in the workspace.":::
260257

@@ -283,7 +280,7 @@ When running machine learning tasks using the SDK, you require a MLClient object
283280
from azure.ai.ml import MLClient
284281

285282
# read the config from the current directory
286-
ws_from_config = MLClient.from_config()
283+
ws_from_config = MLClient.from_config(credential=DefaultAzureCredential())
287284
```
288285
* **From parameters**: There's no need to have a config.json file available if you use this approach.
289286

@@ -293,9 +290,7 @@ If you have problems in accessing your subscription, see [Set up authentication
293290

294291
## Find a workspace
295292

296-
See a list of all the workspaces you can use.
297-
You can also search for workspace inside studio. See [Search for Azure Machine Learning assets (preview)](how-to-search-assets.md).
298-
293+
See a list of all the workspaces you can use. You can also search for workspace inside studio. See [Search for Azure Machine Learning assets (preview)](how-to-search-assets.md).
299294

300295
# [Python SDK](#tab/python)
301296

@@ -308,27 +303,25 @@ To get details of a specific workspace:
308303

309304
[!notebook-python[](~/azureml-examples-main/sdk/python/resources/workspace/workspace.ipynb?name=ws_location)]
310305

311-
312306
# [Portal](#tab/azure-portal)
313307

314308
1. Sign in to the [Azure portal](https://portal.azure.com/).
315309

316-
1. In the top search field, type **Machine Learning**.
310+
1. In the top search field, type **Machine Learning**.
317311

318312
1. Select **Machine Learning**.
319313

320314
![Search for Azure Machine Learning workspace](./media/how-to-manage-workspace/find-workspaces.png)
321315

322-
1. Look through the list of workspaces found. You can filter based on subscription, resource groups, and locations.
316+
1. Look through the list of workspaces found. You can filter based on subscription, resource groups, and locations.
323317

324318
1. Select a workspace to display its properties.
325319

326320
---
327321

328-
329322
## Delete a workspace
330323

331-
When you no longer need a workspace, delete it.
324+
When you no longer need a workspace, delete it.
332325

333326
[!INCLUDE [machine-learning-delete-workspace](includes/machine-learning-delete-workspace.md)]
334327

@@ -365,7 +358,7 @@ In the [Azure portal](https://portal.azure.com/), select **Delete** at the top
365358
* Chrome (latest version)
366359
* Firefox (latest version)
367360

368-
* **Azure portal**:
361+
* **Azure portal**:
369362
* If you go directly to your workspace from a share link from the SDK or the Azure portal, you can't view the standard **Overview** page that has subscription information in the extension. In this scenario, you also can't switch to another workspace. To view another workspace, go directly to [Azure Machine Learning studio](https://ml.azure.com) and search for the workspace name.
370363
* All assets (Data, Experiments, Computes, and so on) are available only in [Azure Machine Learning studio](https://ml.azure.com). They're *not* available from the Azure portal.
371364
* Attempting to export a template for a workspace from the Azure portal may return an error similar to the following text: `Could not get resource of the type <type>. Resources of this type will not be exported.` As a workaround, use one of the templates provided at [https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.machinelearningservices](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.machinelearningservices) as the basis for your template.
@@ -377,7 +370,6 @@ In the [Azure portal](https://portal.azure.com/), select **Delete** at the top
377370
### Resource provider errors
378371

379372
[!INCLUDE [machine-learning-resource-provider](includes/machine-learning-resource-provider.md)]
380-
381373

382374
### Deleting the Azure Container Registry
383375

@@ -397,6 +389,4 @@ To learn more about planning a workspace for your organization's requirements, s
397389

398390
* If you need to move a workspace to another Azure subscription, see [How to move a workspace](how-to-move-workspace.md).
399391

400-
401-
402-
For information on how to keep your Azure Machine Learning up to date with the latest security updates, see [Vulnerability management](concept-vulnerability-management.md).
392+
For information on how to keep your Azure Machine Learning up to date with the latest security updates, see [Vulnerability management](concept-vulnerability-management.md).

articles/machine-learning/how-to-read-write-data-v2.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ ms.topic: how-to
99
ms.author: yogipandey
1010
author: ynpandey
1111
ms.reviewer: franksolomon
12-
ms.date: 06/20/2023
12+
ms.date: 02/06/2024
1313
ms.custom:
1414
- devplatv2
1515
- sdkv2
1616
- cliv2
17+
- event-tier1-build-2022
18+
- ignite-2022
1719
- build-2023
1820
- ignite-2023
1921
#Customer intent: As an experienced Python developer, I need to read my data, to make it available to a remote compute resource, to train my machine learning models.
@@ -23,7 +25,6 @@ ms.custom:
2325

2426
[!INCLUDE [dev v2](includes/machine-learning-dev-v2.md)]
2527

26-
2728
In this article you learn:
2829

2930
> [!div class="checklist"]
@@ -985,6 +986,8 @@ In the `Input` object, specify the `type` as `AssetTypes.MLTABLE` and `mode` as
985986
> [!NOTE]
986987
> To use [serverless compute](how-to-use-serverless-compute.md), delete `compute="cpu-cluster",` in this code.
987988

989+
For more information about the MLClient object, MLClient object initialization options, and how to connect to a workspace, visit [Connect to a workspace](./how-to-manage-workspace.md#connect-to-a-workspace).
990+
988991
```python
989992
from azure.ai.ml import command
990993
from azure.ai.ml.entities import Data

0 commit comments

Comments
 (0)