azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

is ADF V1 supported?

Open saulcruz opened this issue 9 years ago • 4 comments

First of all, thanks for this library, I've been trying to find my data factories (v1) in my resource group and it can only find the v2 data factories, does this library only support ADF v2? if so, is there a workaround?

My resource group is in location US East 2 MY data factory V1 is in US East

    rg_name = 'rg-name-useast2'
    df_name = 'df-name-useast'

    subscription_id = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'
    credentials = ServicePrincipalCredentials(client_id='xxxxxxx-xx-',
                                              secret='xxxxxxx=',
                                              tenant='xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx')
    adf_client = DataFactoryManagementClient(credentials, subscription_id)
    test = adf_client.factories.get(resource_group_name=rg_name, factory_name=df_name)
    print(test)

Error

b'{"error":{"code":"ResourceNotFound","message":"The Resource \'Microsoft.DataFactory/factories/df-name-useast\' under resource group \'rg-name-useast2\' was not found."}}'

saulcruz avatar Oct 16 '17 13:10 saulcruz

Hi @saulcruz I think this is supporting only v2, but maybe @hvermis has insights about this.

lmazuel avatar Oct 16 '17 16:10 lmazuel

ADF Python SDK supports only our V2. For V1 we have Powershell and C# only.

hvermis avatar Oct 16 '17 19:10 hvermis

Thanks @hvermis !

lmazuel avatar Oct 16 '17 19:10 lmazuel

thanks @hvermis

saulcruz avatar Oct 16 '17 19:10 saulcruz