Skip to content

Commit 54cc2e9

Browse files
authored
Update data-factory.md
1 parent 90790a4 commit 54cc2e9

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

docs-ref-services/latest/data-factory.md

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,50 @@ ms.topic: reference
88
ms.devlang: python
99
ms.service: datafactory
1010
---
11-
# Azure Data Factory libraries for Python
12-
13-
Compose data storage, movement, and processing services into automated data pipelines with [Azure Data Factory](/azure/data-factory/)
14-
15-
[Learn more](/azure/data-factory/introduction) about Data Factory and get started with the [Create a data factory and pipeline using Python quickstart](/azure/data-factory/quickstart-create-data-factory-python).
16-
17-
## Management module
18-
19-
Create and manage Data Factory instances in your subscription with the management module.
20-
21-
### Installation
22-
23-
Install the package with [pip](https://pip.pypa.io/en/stable/quickstart/):
24-
25-
```bash
26-
pip install azure-mgmt-datafactory
27-
```
28-
29-
### Example
30-
31-
Create a Data Factory in your subscription on the East US region.
32-
33-
```python
34-
from azure.common.credentials import ServicePrincipalCredentials
35-
from azure.mgmt.resource import ResourceManagementClient
36-
from azure.mgmt.datafactory import DataFactoryManagementClient
37-
from azure.mgmt.datafactory.models import *
38-
import time
39-
40-
#Create a data factory
41-
subscription_id = '<Specify your Azure Subscription ID>'
42-
credentials = ServicePrincipalCredentials(client_id='<Active Directory application/client ID>', secret='<client secret>', tenant='<Active Directory tenant ID>')
43-
adf_client = DataFactoryManagementClient(credentials, subscription_id)
44-
45-
rg_params = {'location':'eastus'}
46-
df_params = {'location':'eastus'}
47-
48-
df_resource = Factory(location='eastus')
49-
df = adf_client.factories.create_or_update(rg_name, df_name, df_resource)
50-
print_item(df)
51-
while df.provisioning_state != 'Succeeded':
52-
df = adf_client.factories.get(rg_name, df_name)
53-
time.sleep(1)
54-
```
55-
56-
> [!div class="nextstepaction"]
57-
> [Explore the Management APIs](/python/api/overview/azure/datafactory/management)
11+
# Azure Data Factory libraries for Python
12+
13+
Compose data storage, movement, and processing services into automated data pipelines with [Azure Data Factory](/azure/data-factory/)
14+
15+
[Learn more](/azure/data-factory/introduction) about Data Factory and get started with the [Create a data factory and pipeline using Python quickstart](/azure/data-factory/quickstart-create-data-factory-python).
16+
17+
## Management module
18+
19+
Create and manage Data Factory instances in your subscription with the management module.
20+
21+
### Installation
22+
23+
Install the package with [pip](https://pip.pypa.io/en/stable/quickstart/):
24+
25+
```bash
26+
pip install azure-mgmt-datafactory
27+
```
28+
29+
### Example
30+
31+
Create a Data Factory in your subscription on the East US region.
32+
33+
```python
34+
from azure.common.credentials import ServicePrincipalCredentials
35+
from azure.mgmt.resource import ResourceManagementClient
36+
from azure.mgmt.datafactory import DataFactoryManagementClient
37+
from azure.mgmt.datafactory.models import *
38+
import time
39+
40+
#Create a data factory
41+
subscription_id = '<Specify your Azure Subscription ID>'
42+
credentials = ServicePrincipalCredentials(client_id='<Active Directory application/client ID>', secret='<client secret>', tenant='<Active Directory tenant ID>')
43+
adf_client = DataFactoryManagementClient(credentials, subscription_id)
44+
45+
rg_params = {'location':'eastus'}
46+
df_params = {'location':'eastus'}
47+
48+
df_resource = Factory(location='eastus')
49+
df = adf_client.factories.create_or_update(rg_name, df_name, df_resource)
50+
print_item(df)
51+
while df.provisioning_state != 'Succeeded':
52+
df = adf_client.factories.get(rg_name, df_name)
53+
time.sleep(1)
54+
```
55+
56+
> [!div class="nextstepaction"]
57+
> [Explore the Management APIs](/python/api/azure-mgmt-datafactory)

0 commit comments

Comments
 (0)