Hi Sathya,
Thanks for reaching out to Microsoft Q&A.
Connecting to a Private GitHub Repository
- Create a Private GitHub Repository:
- Create a new private repository under your GitHub organization account and assign yourself as an admin.
- Connect ADF to the Private GitHub Repository:
- In the Azure portal, navigate to your Azure Data Factory instance.
- Click on "Set up code repository" and select "GitHub" as the repository type.
- Authenticate with your GitHub account when prompted.
- In the "GitHub repository owner" field, enter the name of your GitHub organization.
- However, you will not see your private repository listed in the "Repository Name" dropdown.
- Grant ADF Access to the Private Repository:
- Go to your GitHub organization settings and navigate to the "Applications" section.
- You should see the Azure Data Factory application listed there. Click on it.
- In the application settings, grant the ADF application access to your private repository by selecting the appropriate permissions.
- Retry Connecting ADF to the Private Repository:
- After granting the necessary permissions, go back to the Azure Data Factory instance in the portal.
- Click "Set up code repository" again and this time you should see your private repository listed in the "Repository Name" dropdown.
- Select your private repository and complete the rest of the setup process.
The key steps are:
- Create a private GitHub repository under your organization.
- Grant the Azure Data Factory application access to your private repository through the GitHub organization settings.
- Then you should be able to successfully connect your ADF instance to the private GitHub repository.
Let me know if you have any other questions!
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.