I am getting an error while connecting Azure Devops with ADF Verify that your Azure DevOps account is connected to the AAD account, - azure

I am not able to connect Azure Devops with ADF. i am getting an error as mentioned in screenshot
there is no repository coming when i clicked on select repo.

Make sure your Azure DevOps account is connected to your Azure AD tenant where the user from which you’re accessing ADF. By default, the Azure DevOps account gets created in Microsoft Tenant, Switch your Azure DevOps tenant to your Azure AD default directory and add the user account to that organization.
Log in to your Azure DevOps organization > right side > Click on your profile > My profile> Switch your Directory from Microsoft account to Default directory like below:-
Now, Create one organization and Project to import your Data-Factory repository. In the same Azure DevOps organization check if it’s connected to your Azure AD directory successfully like below:-
Now, connect to Azure DevOps git repo with Azure Data factory like below:-
Azure Data factory got connected to the git repository successfully like below:-
Connecting with azure devops repository link [Use repository link]
Got connected to the repository successfully like below:-
In your Azure DevOps organization make sure the user with whom you’re connecting git in ADF has required roles assigned on the repositories.
Set Git repository permissions - Azure Repos | Microsoft Learn

Related

I am getting an error while connecting AAD in azure devops

I am getting an error while connecting with AAD
User bhavyaaggarwal1993#outlook.com is a guest in the target AAD tenant Default Directory. The current organization policy does not allow guest users to access the organization. Change the policy setting to allow external guest access and try again.
Make sure your Azure DevOps Directory is connected to the same Default directory as your Azure AD tenant. refer to below:-
When I try to connect my Azure DevOps organization connected to Microsoft account Tenant like below, I get the same error code as yours:-
Log in to your Azure DevOps account click on your profile at right > My profile and check if your Microsoft Account is selected like below:-
When I visit the Azure DevOps organization part of this Microsoft account directory and try connecting my Azure AD tenant to this Azure DevOps organization, I get the same error code as yours like below:-
Make sure you change your Azure DevOps account directory to your Azure AD default directory like the below:-
Click on My profile
Change the Directory to your Azure AD Default Directory like the below:-
If there’s no Organization > Create one and Check your Organization settings > Azure Active Directory
Your Azure DevOps account will be connected to your Azure AD tenant like the below:-
By default, your bsaf-sgi-germany organization might be created inside Microsoft Account or another Directory than your Azure AD, change the Directory to Default like above.

What permissions are required to create Azure Pipeline?

Trying to create Azure Pipeline using Visual Studio 2019 and getting this error message:
"The selected account doesn't have sufficient permissions to access
this Azure DevOps project. You'll need to use a different account.
The account I'm using is the admin on Azure DevOps server, and also the Azure tenant admin. What specific permissions do I need to create an Azure pipeline, in addition to being admin?

Cannot connect Azure DevOps organization to Azure Active Directory

I have created an Azure DevOps organization. I have created it with my outlook account. I want to connect it to Azure Active Directory (AAD), Default Directory, on my Azure portal. I am using the free account on Azure portal which allows me to have one subscription. The AAD directory is shown below:
I want to connect my Azure DevOps organization to Azure Active Directory. I am using the same user in Azure portal and Azure DevOps. I have basically created both by the same account. I am following the instruction at this link to connect Azure DevOps organization to Azure AD. I emphasize that in my case both are created by the same email. However, in Azure DevOps Organization settings, by clicking on "connect directory" under "Azure Active Directory", I get an error that: "User myuser#outlook.com is a guest in the target AAD tenant Default Directory. The current organization policy does not allow guest users to access the organization. Change the policy setting to allow external guest access and try again."
This is what I see at organization settings in DevOps:
This is the error when I try to connect it to AAD:
When I check my user in Azure Active Directory I can see it has global admin role, and is a member, not guest! It is after all the user by which I have created this account and all the resources: (It is the user on the second row:)
As mentioned earlier, this user has global administrator role:
I also tried changing my policies at AAD side to be able to connect my DevOps project to AAD, but again it fails. This is how the policies are:
I basically don't know what else I should do to connect DevOps to AAD. Any help is appreciated.
When you log in to Azure DevOps, it logs in with Microsoft Directory.
You need to switch the tenant to your default directory
Then you would be able to link your Azure AD tenant to your Azure DevOps Organization

How to resolve no access in Azure Data Factory 2 to Azure DevOps Repository

I am facing an issue on Azure Data Factory when I try to access the Azure DevOps Git Repository that I configured. The error message is: "Invalid GIT configuration. You need to gain access to the repository before you can publish any changes. Details: Authentication error - you do not have access to the provided Azure DevOps account."
I am using the same account on both DevOps and Data Factory. My Azure portal access is "Contributor" at the subscription level and my DevOps role is Project Administrator on the project.
Regards,
Tania
I've tried various combinations of creating the repository as new from Data Factory as well as using an existing one created (by myself) in Azure DevOps.
From https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles in the Open Feedback items a user mentions that "the Build-in role Data Factory Contributor this is not in Allow part:
Action:Microsoft.DataFactory/locations/configureFactoryRepo/action"
I investigated the the contributor role and it appears to have the Action allowed as "Read" ?
ADF Repo Settings
ADF Repo Error
After the detailed message shared from #taniaw, this issue caused by the account confused.
Here has 2 accounts, A#abc.com, and A#efg.com.
When login to azure portal with A#abc.com, and configure the Azure Devops Git. It's all correct. Now, the issue is when go Azure Devops Git tab after the repos configured successfully, its access account used in the backend changed into A#efg.com. But this account does not has permission to access the organization and repos. That's why when click the Azure Devops Git tab, it is grey and receiving the error message "You do not access to the repository".
These detailed message can all be viewed by Fiddler. Everyone can use fiddler trace to know the exactly error caused then analyze it.
At last, the solution is this is the account mapping confused issue which need Azure Account Team support.
Verify the User configuration at Organization level:
The default is "Stakeholder" - it should be "Basic" actually.
Hope it is useful.
This issue was resolved today. The cause was a different Azure DevOps tenant where my account had been added as a guest had used an email account instead of my Azure AD account and this caused the confusion when passing credentials from Azure Data Factory to Azure DevOps. The issue was resolved by leaving the organization that had my user mis-configured as I'm no longer actively working on that project. A better solution may have been to have their Azure AD administrator update my guest account to the correct details.

ADF v2 - VSTS integration

I'm not able to configure the VSTS Account for ADF v2. The login I use to access azure portal and azure data factory v2, do have access to VSTS git repositories. But they are not getting listed in the dropdown. Should I configure something or am I missing something?
Do the VSTS account and azure active directory account to author ADF v2 - be the same?
Even if they are same why am I not seeing the associated git repositories to configure?
I referred here but couldn't solve https://learn.microsoft.com/en-us/azure/data-factory/author-visually#authoring-with-vsts-git-integration

Resources