question

DavisDan-9570 avatar image
0 Votes"
DavisDan-9570 asked chenli-6199 published

Connecting ADF to Git Hub Repo - Government Cloud

Hi -

How can I connect my Azure Data Factory to my GitHub repository in the US Government cloud? The Git Hub Repository is NOT enterprise. And I have gone through the process of creating a personal access token in git, and OAUTH application with full permissions following the steps in this article: https://techcommunity.microsoft.com/t5/azure-data-factory/cicd-improvements-with-github-support-in-azure-government-and/ba-p/2686918

My ADF instance also has full permissions on the Azure Key Vault we are using that contains the github application secret. I know for a fact that my client ID and vault URL pointing to the secret are correct, but whenever I go to add github to ADF I get the error below (image is also attached):

132490-image.png


The error says "Failed to fetch personal access token. Please confirm the BYOA client id and secret are valid and that ADF has been granted access to the Key Vault."

I know that ADF has been granted full access to the key vault, and the client ID and secret url are indeed valid.

Any thougts?132494-adf-error.png


azure-data-factory
image.png (137.9 KiB)
adf-error.png (88.9 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @DavisDan-9570 ,
Thanks for the ask and using the Microsoft Q&A platform .
At this time, we are reaching out to the internal team to get some help on this . We will update you once we hear back from them.

Thanks
Himanshu

0 Votes 0 ·

Having exactly the same issue.

0 Votes 0 ·
PedroMadrid-5216 avatar image
0 Votes"
PedroMadrid-5216 answered

Solved the issue by assigning the Data Factory Contributor role to my user.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GurvinderKandhola-1509 avatar image
0 Votes"
GurvinderKandhola-1509 answered chenli-6199 published

Hi Sir,

I am having this issue while configuring the Git- Hub Account with Govt Cloud.

Tried :

1) I have tried assigning the contributor Role , with Scope as " This Resource" to ADF on the Key Vault.

The Solution posted by PedroMadrid , mentions that this was resolved by assigning Data Factory Contributor Role to my User.

q1) Who is the "my User" in this case , Is this the GitHub Account Holder?
q2) On which resource , do we need to assign the Data Factory Contributor Role to my user. Is it the Data Factory or the Key Vault?

Will appreciate a quick reply!
Thanks & Regards
Gurvinder

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,I have same issue, did you resolved it?

0 Votes 0 ·