Skip to content

Commit 98262d4

Browse files
committed
Freshness update for how-to-connection.md . . .
1 parent f726c1d commit 98262d4

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

articles/machine-learning/how-to-connection.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: how-to
99
ms.author: franksolomon
1010
author: fbsolo-ms1
1111
ms.reviewer: ambadal
12-
ms.date: 06/19/2023
12+
ms.date: 07/24/2024
1313
ms.custom: data4ml, devx-track-azurecli
1414
# Customer intent: As an experienced data scientist with Python skills, I have data located in external sources outside of Azure. I need to make that data available to the Azure Machine Learning platform, to train my machine learning models.
1515
---
@@ -18,7 +18,8 @@ ms.custom: data4ml, devx-track-azurecli
1818

1919
[!INCLUDE [dev v2](includes/machine-learning-dev-v2.md)]
2020

21-
In this article, you'll learn how to connect to data sources located outside of Azure, to make that data available to Azure Machine Learning services. Azure connections serve as key vault proxies, and interactions with connections are actually direct interactions with an Azure key vault. Azure Machine Learning connections store username and password data resources securely, as secrets, in a key vault. The key vault RBAC controls access to these data resources. For this data availability, Azure supports connections to these external sources:
21+
In this article, learn how to connect to data sources located outside of Azure, to make that data available to Azure Machine Learning services. Azure connections serve as key vault proxies, and interactions with connections are direct interactions with an Azure key vault. An Azure Machine Learning connection securely stores username and password data resources, as secrets, in a key vault. The key vault RBAC controls access to these data resources. For this data availability, Azure supports connections to these external sources:
22+
2223
- Snowflake DB
2324
- Amazon S3
2425
- Azure SQL DB
@@ -34,10 +35,10 @@ In this article, you'll learn how to connect to data sources located outside of
3435
- An Azure Machine Learning workspace.
3536

3637
> [!IMPORTANT]
37-
> An Azure Machine Learning connection securely stores the credentials passed during connection creation in the Workspace Azure Key Vault. A connection references the credentials from the key vault storage location for further use. You won't need to directly deal with the credentials after they are stored in the key vault. You have the option to store the credentials in the YAML file. A CLI command or SDK can override them. We recommend that you **avoid** credential storage in a YAML file, because a security breach could lead to a credential leak.
38+
> An Azure Machine Learning connection securely stores the credentials passed during connection creation in the Workspace Azure Key Vault. A connection references the credentials from the key vault storage location for further use. You don't need to directly deal with the credentials after they are stored in the key vault. You have the option to store the credentials in the YAML file. A CLI command or SDK can override them. We recommend that you **avoid** credential storage in a YAML file, because a security breach could lead to a credential leak.
3839
3940
> [!NOTE]
40-
> For a successful data import, please verify that you have installed the latest azure-ai-ml package (version 1.5.0 or later) for SDK, and the ml extension (version 2.15.1 or later).
41+
> For a successful data import, please verify that you installed the latest **azure-ai-ml** package (version 1.5.0 or later) for SDK, and the ml extension (version 2.15.1 or later).
4142
>
4243
> If you have an older SDK package or CLI extension, please remove the old one and install the new one with the code shown in the tab section. Follow the instructions for SDK and CLI as shown here:
4344
@@ -275,7 +276,6 @@ from azure.ai.ml import MLClient, load_workspace_connection
275276

276277
ml_client = MLClient.from_config()
277278

278-
279279
wps_connection = load_workspace_connection(source="./my_s3_connection.yaml")
280280
ml_client.connections.create_or_update(workspace_connection=wps_connection)
281281

@@ -318,7 +318,13 @@ ml_client.connections.create_or_update(workspace_connection=wps_connection)
318318

319319
## Non-data connections
320320

321-
The following connection types can be used to connect to Git, Python feed, Azure Container Registry, and a connection that uses an API key. These connections are not data connections, but are used to connect to external services for use in your code.
321+
You can use these connection types to connect to Git:
322+
323+
- Python feed
324+
- Azure Container Registry
325+
- a connection that uses an API key
326+
327+
These connections aren't data connections, but are used to connect to external services for use in your code.
322328

323329
### Git
324330

@@ -357,7 +363,7 @@ az ml connection create --file connection.yaml
357363

358364
# [Python SDK](#tab/python)
359365

360-
The following example creates a Git connection to a GitHub repo. This connection is authenticated with a Personal Access Token (PAT):
366+
The following example creates a Git connection to a GitHub repo. A Personal Access Token (PAT) authenticates the connection:
361367

362368
```python
363369
from azure.ai.ml.entities import WorkspaceConnection
@@ -387,7 +393,7 @@ You can't create a Git connection in studio.
387393

388394
# [Azure CLI](#tab/cli)
389395

390-
Create a connection to a Python feed with one of following YAML file. Be sure to update the appropriate values:
396+
Create a connection to a Python feed with one of following YAML files. Be sure to update the appropriate values:
391397

392398
* Connect using a personal access token (PAT):
393399

@@ -430,7 +436,7 @@ az ml connection create --file connection.yaml
430436

431437
# [Python SDK](#tab/python)
432438

433-
The following example creates a Python feed connection. This connection is authenticated with a personal access token (PAT) or a username and password:
439+
The following example creates a Python feed connection. A Personal Access Token (PAT), or a user name and password, authenticates the connection:
434440

435441
```python
436442
from azure.ai.ml.entities import WorkspaceConnection
@@ -463,7 +469,7 @@ You can't create a Python feed connection in studio.
463469

464470
# [Azure CLI](#tab/cli)
465471

466-
Create a connection to an Azure Container Registry with one of following YAML file. Be sure to update the appropriate values:
472+
Create a connection to an Azure Container Registry with one of following YAML files. Be sure to update the appropriate values:
467473

468474
* Connect using Microsoft Entra ID authentication:
469475

@@ -497,7 +503,7 @@ az ml connection create --file connection.yaml
497503

498504
# [Python SDK](#tab/python)
499505

500-
The following example creates an Azure Container Registry connection. This connection is authenticated using a managed identity:
506+
The following example creates an Azure Container Registry connection. A managed identity authenticates this connection:
501507

502508
```python
503509
from azure.ai.ml.entities import WorkspaceConnection
@@ -547,7 +553,7 @@ ml_client.connections.create_or_update(workspace_connection=wps_connection)
547553

548554
## Related content
549555

550-
If you are using a data connection (Snowflake DB, Amazon S3, or Azure SQL DB), see these articles for more information:
556+
If you use a data connection (Snowflake DB, Amazon S3, or Azure SQL DB), these articles offer more information:
551557

552558
- [Import data assets](how-to-import-data-assets.md)
553559
- [Schedule data import jobs](how-to-schedule-data-import.md)

0 commit comments

Comments
 (0)