Closed SiddheshDesai06 closed 12 months ago
@SiddheshDesai06 Thanks for your feedback! We will investigate and update as appropriate.
Hi @SiddheshDesai06
Ds_in is not valid. You need to debug it. Can you do it in gui without SDK? Many customers are using Python SDK successfully.
Hi @Naveenommi-MSFT Yes, I am able to do it in GUI but when I run the Default code from MS Document it gives errors. Can you give me a workable sample with Python SDK? Thank you!
Hi @Naveenommi-MSFT invalid reference 'ds_in This is just one error, If you run the quickstart code - https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python#full-script by replacing variabes in def main with yours in def main():
# Azure subscription ID
subscription_id = '<subscription ID>'
# This program creates this resource group. If it's an existing resource group, comment out the code that creates the resource group
rg_name = '<resource group>'
# The data factory name. It must be globally unique.
df_name = '<factory name>'
# Specify your Active Directory client ID, client secret, and tenant ID
credentials = ClientSecretCredential(client_id='<service principal ID>', client_secret='<service principal key>', tenant_id='<tenant ID>')
resource_client = ResourceManagementClient(credentials, subscription_id)
adf_client = DataFactoryManagementClient(credentials, subscription_id)
rg_params = {'location':'westus'}
df_params = {'location':'westus'} values
You will face many errors, so the quickstart code itself has an issue
I tried resolving the errors but the error continued when I used the quick start code as it is with my variables.
@ssabat We have reproduce the issue, we got similar error, please see the screenshot below. Could you please review add comments on this, update as appropriate.
@SiddheshDesai06 Thank you for bringing this to our attention. I've delegated this to content author @ssabat , who will review it and offer their insightful opinions.
@SiddheshDesai06 @Naveenommi-MSFT This sample is very popular. Please follow steps exactly as per doc before you customize for your use case.
Create the application by following the steps in this link, using Authentication Option 2 (application secret), and assign the application to the Contributor role by following instructions in the same article. Make note of the following values as shown in the article to use in later steps: Application (client) ID, client secret value, and tenant ID.
You are missing resource assignments/binding and htttp errors are there because above is not setup correctly.
I tried assigning custom values of my application secrets, Still the entire code is full of errors.
Thanks @SiddheshDesai06 for your feedback. This is a sample code only. It has been used many times with custom modification @sid24desai, please open a support ticket and we will work with you find the root cause for errors.
I am trying to follow the code in this Document- https://learn.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-python but the code is giving errors, I have modified the code to create the datasets the dataset creation is successful but the datasets are not linked to the output blob path and the creation of pipeline also fails.
My modified code:-
I modified the lined below:-
Output:-
ADF resource and Datasets created but getting this error
Datasets created like below but output blob path is not shown:-
And got this error after I ran the above code:-
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.