Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
379 stars 1.19k forks source link

Import to Git using az datafactory factory configure-factory-repo #2103

Open vladris opened 4 years ago

vladris commented 4 years ago

datafactory Extension

Description of issue


I'm using az datafactory factory configure-factory-repo to add VSTS to a Data Factory. If I use the UI, there is an option to automatically import all existing Data Factory objects (pipelines etc.) to Git. As far as I can tell, the command line version doesn't have that option.

That means that if I add a repo with Azure CLI, the repo will be out of sync with the DF. The ADF UI editor will look at git and think the DF is empty even though all objects exist in the environment.

Am I missing something? Should there be a flag to trigger import?

arrownj commented 4 years ago

Hi @fengzhou-msft , could you please help with this issue ?

vladris commented 4 years ago

Any updates on this?

qiaozha commented 4 years ago

Since there's a github authorization when choosing the Github Type and it will sync the Azure DevOps account to get the info of Azure DevOps projects when choosing the VSTS type. I am not sure how cli can handle this. But I think we also need some knowledge from service team about how to use pure api interaction to achieve this.

yungezz commented 4 years ago

hi @fengzhou-msft could you pls help to have a look? Is this azure cli issue/service ask? and webapp has similiar scenario of input git credential.