Permalink
Switch branches/tags
v2.0.0rc6 v2.0.0rc5 v2.0.0rc4 v2.0.0rc3 v2.0.0rc2 v2.0.0rc1 v2.0.0a1 v1.0.3 v1.0.2 v1.0.1 v1.0.0 v0.11.1 v0.11.0 v0.10.2 v0.10.0 v0.9.0 v0.8.4 v0.8.3 v0.8.2 azure_4.0.0 azure_3.0.0 azure_2.0.0 azure-servicemanagement-legacy_0.20.6 azure-servicefabric_6.3.0.0 azure-servicefabric_6.2.0.0 azure-servicefabric_6.1.2.9 azure-servicefabric_6.1.1.9 azure-servicefabric_6.0.2 azure-servicefabric_6.0.1 azure-servicefabric_6.0.0rc1 azure-servicefabric_6.0 azure-servicefabric_5.6.130 azure-servicebus_0.21.1 azure-servicebus_0.21.0 azure-nspkg_3.0.2 azure-nspkg_3.0.1 azure-nspkg_3.0.0 azure-monitor_0.3.1 azure-monitor_0.3.0 azure-monitor_0.2.0 azure-mgmt_4.0.0 azure-mgmt_2.0.0 azure-mgmt_1.0.0 azure-mgmt_1.0.0rc1 azure-mgmt-web_0.40.0 azure-mgmt-web_0.35.0 azure-mgmt-web_0.34.1 azure-mgmt-web_0.34.0 azure-mgmt-web_0.33.0 azure-mgmt-web_0.32.0 azure-mgmt-web_0.31.1 azure-mgmt-web_0.31.0 azure-mgmt-trafficmanager_0.50.0 azure-mgmt-trafficmanager_0.40.0 azure-mgmt-trafficmanager_0.30.0 azure-mgmt-subscription_0.2.0 azure-mgmt-subscription_0.1.0 azure-mgmt-storage_3.0.0 azure-mgmt-storage_2.0.0 azure-mgmt-storage_2.0.0rc4 azure-mgmt-storage_2.0.0rc3 azure-mgmt-storage_2.0.0rc2 azure-mgmt-storage_2.0.0rc1 azure-mgmt-storage_1.5.0 azure-mgmt-storage_1.4.0 azure-mgmt-storage_1.3.0 azure-mgmt-storage_1.2.1 azure-mgmt-storage_1.2.0 azure-mgmt-storage_1.1.0 azure-mgmt-storage_1.0.0 azure-mgmt-storage_1.0.0rc1 azure-mgmt-storage_0.31.0 azure-mgmt-sql_0.10.0 azure-mgmt-sql_0.9.1 azure-mgmt-sql_0.9.0 azure-mgmt-sql_0.8.6 azure-mgmt-sql_0.8.5 azure-mgmt-sql_0.8.4 azure-mgmt-sql_0.8.3 azure-mgmt-sql_0.8.2 azure-mgmt-sql_0.8.1 azure-mgmt-sql_0.8.0 azure-mgmt-sql_0.7.1 azure-mgmt-sql_0.7.0 azure-mgmt-sql_0.6.0 azure-mgmt-sql_0.5.3 azure-mgmt-sql_0.5.2 azure-mgmt-sql_0.5.1 azure-mgmt-sql_0.5.0 azure-mgmt-sql_0.4.0 azure-mgmt-sql_0.3.3 azure-mgmt-sql_0.3.2 azure-mgmt-sql_0.3.1 azure-mgmt-sql_0.3.0 azure-mgmt-signalr_0.1.1 azure-mgmt-signalr_0.1.0 azure-mgmt-servicefabric_0.2.0 azure-mgmt-servicefabric_0.1.0 azure-mgmt-servicebus_0.5.2 azure-mgmt-servicebus_0.5.1
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (40 sloc) 1.77 KB

Azure Data Lake Management Analytics

For general information on resource management, see :doc:`Resource Management<resourcemanagement>`.

Create the management client

The following code creates an instance of the management client.

You will need to provide your subscription_id which can be retrieved from your subscription list.

See :doc:`Resource Management Authentication <quickstart_authentication>` for details on handling Azure Active Directory authentication with the Python SDK, and creating a Credentials instance.

from azure.mgmt.datalake.analytics import (
            DataLakeAnalyticsAccountManagementClient,
            DataLakeAnalyticsCatalogManagementClient,
            DataLakeAnalyticsJobManagementClient
    )
from azure.common.credentials import UserPassCredentials

# Replace this with your subscription id
subscription_id = '33333333-3333-3333-3333-333333333333'

# See above for details on creating different types of AAD credentials
credentials = UserPassCredentials(
    'user@domain.com',  # Your user
    'my_password',      # Your password
)

account_client = DataLakeAnalyticsAccountManagementClient(
    credentials,
    subscription_id
)
catalog_client = DataLakeAnalyticsCatalogManagementClient(
    credentials,
    subscription_id
)
job_client = DataLakeAnalyticsJobManagementClient(
    credentials,
    subscription_id
)

Samples

Samples writing in progress! In the meantime, you should look at the unit tests of this package:

https://github.com/Azure/azure-sdk-for-python/blob/master/azure-mgmt/tests/test_mgmt_datalake_analytics.py