Setup ADF authen with personal github

Duy Nguyen 20 Reputation points
2024-05-10T05:21:26.4366667+00:00

I have error when I try setup repo git integration with new credential it's not working. check in tab network it return 401 but I don't see any step input credential or token???? why it have token in here?? where it come from??

User's image

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,703 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 78,986 Reputation points Microsoft Employee
    2024-05-10T05:58:35.3333333+00:00

    @Duy Nguyen - Thanks for the question and usign MS Q&A platform.

    UPDATE: As mentioned in the official documentation: Connecting to public GitHub or GitHub Enterprise Cloud for the first time in Azure Data Factory.

    Note: Make sure to clear cookie and cache to the browser or make sure to use another browser to connect to github for first time.

    If you're connecting to public GitHub or GitHub Enterprise Cloud from Azure Data Factory for the first time, follow these steps to connect to a GitHub organization.

    1. In the Git configuration pane, enter the organization name in the GitHub Account field. A prompt to log into GitHub appears.
    2. Sign in using your user credentials.
    3. You are asked to authorize Azure Data Factory as an application called AzureDataFactory. On this screen, you see an option to grant permission for ADF to access the organization. If you don't see the option to grant permission, ask an admin to manually grant the permission through GitHub.

    Once you follow these steps, your factory can connect to both public and private repositories within your organization. If you're unable to connect, try clearing the browser cache and retrying.

    ADF-GithubAccess

    Already connected to public GitHub or GitHub Enterprise Cloud using a personal account

    If you already connected to public GitHub or GitHub Enterprise Cloud and only granted permission to access a personal account, follow the below steps to grant permissions to an organization.

    User's image

    Once you are able complete the authorization, you will be able to connect to Github from Azure Data Factory studio.


    It seems like you are having trouble setting up Azure Data Factory authentication with your personal GitHub account. You will experience this error when you are unable to authorize the Github account.

    User's image

    In general, when you connect to a GitHub organization for the first time in Azure Data Factory, you need to enter the organization name in the GitHub Account field in the Git configuration pane. Then, you will be prompted to log in to GitHub using your user credentials. After logging in, you will be asked to authorize Azure Data Factory as an application called AzureDataFactory. On this screen, you will see an option to grant permission for ADF to access the organization. If you don't see the option to grant permission, ask an admin to manually grant the permission through GitHub.

    For more details, refer to Source control in Azure Data Factory - Already connected to public GitHub or GitHub Enterprise Cloud using a personal account.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


0 additional answers

Sort by: Most helpful