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-connection.md
+37-7Lines changed: 37 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Use connections (preview)
2
+
title: Create connections to external data sources (preview)
3
3
titleSuffix: Azure Machine Learning
4
4
description: Learn how to use connections to connect to External data sources for training with Azure Machine Learning.
5
5
services: machine-learning
@@ -9,7 +9,7 @@ ms.topic: how-to
9
9
ms.author: ambadal
10
10
author: AmarBadal
11
11
ms.reviewer: franksolomon
12
-
ms.date: 04/11/2023
12
+
ms.date: 04/18/2023
13
13
ms.custom: data4ml
14
14
15
15
# 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.
@@ -34,9 +34,34 @@ In this article, learn how to connect to data sources located outside of Azure,
34
34
35
35
- An Azure Machine Learning workspace.
36
36
37
-
> [!NOTE]
37
+
> [!IMPORTANT]
38
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 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.
39
39
40
+
> [!NOTE]
41
+
> 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).
42
+
>
43
+
> 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 below:
44
+
45
+
### Code versions
46
+
47
+
# [SDK](#tab/SDK)
48
+
49
+
```python
50
+
pip uninstall azure-ai-ml
51
+
pip install azure-ai-ml
52
+
pip show azure-ai-ml #(the version value needs to be 1.5.0 or later)
53
+
```
54
+
55
+
# [CLI](#tab/CLI)
56
+
57
+
```cli
58
+
az extension remove -n ml
59
+
az extension add -n ml --yes
60
+
az extension show -n ml #(the version value needs to be 2.15.1 or later)
## Importing from external database sources / import from external sources to create a mltable data asset
46
+
> [!NOTE]
47
+
> 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).
48
+
>
49
+
> 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 below:
50
+
51
+
### Code versions
52
+
53
+
# [SDK](#tab/SDK)
47
54
48
-
> [!NOTE]
55
+
```python
56
+
pip uninstall azure-ai-ml
57
+
pip install azure-ai-ml
58
+
pip show azure-ai-ml #(the version value needs to be 1.5.0 or later)
59
+
```
60
+
61
+
# [CLI](#tab/CLI)
62
+
63
+
```cli
64
+
az extension remove -n ml
65
+
az extension add -n ml --yes
66
+
az extension show -n ml #(the version value needs to be 2.15.1 or later)
67
+
```
68
+
69
+
---
70
+
71
+
## Importing from an external database source as a table data asset
72
+
73
+
> [!NOTE]
49
74
> The external databases can have Snowflake, Azure SQL, etc. formats.
50
75
51
76
The following code samples can import data from external databases. The `connection` that handles the import action determines the external database data source metadata. In this sample, the code imports data from a Snowflake resource. The connection points to a Snowflake source. With a little modification, the connection can point to an Azure SQL database source and an Azure SQL database source. The imported asset `type` from an external database source is `mltable`.
@@ -87,7 +112,7 @@ from azure.ai.ml import MLClient
0 commit comments