0
votes

So the problem is that I created Azure Data Factory with git enabled on the portal. After the resource was validated and created, and after clicking on Author and Monitor, the "Copy Data" feature seems to be disabled as shown in the picture below:

enter image description here

When hovered on the "Copy Data": This feature is disabled in 'Data Factory' mode as your factory has GIT enabled. Please switch to 'GIT' mode to use this.

After clicking on the Manage, the disconnect button seems to be disabled again as shown in the picture below. enter image description here How do I enable the button and disconnect my GitHub to enable "Copy data" feature?



Update:
Nandan said to check on Author but it is disabled as well. enter image description here

4

4 Answers

0
votes

On the home page of Azure Data Factory, can you see the option "Git repo settings" at the upper right corner? If yes, you can try to remove the GIT connection via this option.

Below are the tickets for the similar questions, you can reference:

0
votes

You can disable the GIT by disconnecting via Manage option as seen below: enter image description here

But initially you would need to go to Author section to hover to drop down to change from Data factory mode to Git Mode: enter image description here

The above images are via account which has access on GIT as well as ADF.

I logged in via an Account which has contributor access on ADF but no access on the repo and when I logged into ADF I got the below warning which got blocked in pop up of explorer : enter image description here

And when I clicked on continue, and when I went to Manage section ; the disconnect option was disabled for me as seen below enter image description here

So I added my account to Repo and after sometime I was able to manage the GIT in ADF

0
votes

I'm having the exact same issues as the OP. I have an [email protected] user on Azure and a myname@gmail private GitHub account, and it's impossible to invite the Azure user because they don't have an email (they are just for administering Azure resources).

Integration with GitHub: 1) didn't work at all when configured at the launch time of ADF, 2) worked for one session when created within a new ADF instance, and 3) doesn't work when logging back into ADF.

I get the exact same issues: cannot disconnect from git:

enter image description here

and can't change into Git mode to do any work in ADF:

enter image description here

Naturally, the GitHub account has ADF authorised but there's no collaborator on the repo because I can't invite a user who doesn't have email:

enter image description here

None of the linked resources deal with this issue because there's no way to disconnect Git from ADF unless the "disconnect" button is no longer greyed-out. I would really appreciate any more ideas.

0
votes

I ran into this issue myself and was able to resolve it. It occurred because the collaboration branch was deleted. In the browser, I was unable to select Git mode because it was confused.

To fix it, I turned to PowerShell. You need Powershell with the Az cmdlets installed.

https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-5.3.0

You'll need to know:

  • Subscription name in Azure
  • Data Factory name
  • Collaboration branch in github
  • Root folder in github
  • Account name for github
  • Repository name in github

Fire up Powershell with the Azure cmdlets and do like so...

Connect-AzAccount
Set-AzContext "<yoursubscriptionname>"
$dataFactory = Get-AzDataFactoryV2 -Name "<your data factory name>"
Set-AzDataFactoryV2 -InputObject $dataFactory -CollaborationBranch "<branch>" -RootFolder "<github root folder>" -AccountName "<github account>" -RepositoryName "<github repository>" -HostName "https://github.com"

When I ran that series of Powershell commands, it asked me if I wanted to overwrite, I said yes. Then I was able to deal with Git in Data Factory again.