Unable to link Azure DevOps to our Microsoft Entra Connection - oddly as I'm not a member?!?

Donpaul Stephens 0 Reputation points
2025-04-10T15:45:41.0333333+00:00

In Azure DevOps, I am unable to connect with Microsoft Entra our organization's subscription (directory).

I first get the warning:

Once connected, 2 out of 10 member(s) of this organization won't be able to sign in because they aren't a member of the target directory.

Oddly, this is >ME< (the owner) and the only other person who was created as a new user in [our] organization. It can see the 8 people who were "invited as external users.

When I try to connect anyway, I get the error:

"

User: [>>ME<<] is not allowed to link organization: [>>MY ORGANIZATION<<] to Microsoft Entra tenant: [>>OUR SUBSCRIPTION NAME<<]. Only active members of the Microsoft Entra tenant are allowed to perform the link.

Azure DevOps
{count} votes

1 answer

Sort by: Most helpful
  1. Arko 4,150 Reputation points Microsoft External Staff Moderator
    2025-04-11T09:11:20.85+00:00

    Hello Donpaul Stephens,

    the error you are encountering-

    "User is not allowed to link organization to Microsoft Entra tenant. Only active members of the Microsoft Entra tenant are allowed to perform the link."

    happens because your Azure DevOps org must have been created using a Microsoft MSA Account (e.g. @gmail.com, @outlook.com)

    Please note, Microsoft Accounts are not considered Members of the Entra tenant. Only Entra ID members (not Guests/MSA users) can link DevOps to the tenant.

    Question- So how to fix it now? Any Resolution?

    Ans- Yes, Set Up a Clean DevOps Org Using Entra ID

    Create a New Microsoft Entra User (Member) by going to https://portal.azure.com then navigate to Microsoft Entra ID > Users > New User

    enter image description here

    Fill the details such as

    User principal name: whatever you want. For this example I gave-devopsadmin@<yourtenant>.onmicrosoft.com

    Display name: DevOps Admin again your choice. edit it

    User type: Member (important!) this remains same

    Password: Set manually or auto-generate again upto you.

    Once all the details are filled, review and create.

    This creates a native Entra ID user in your tenant

    enter image description here

    next grant subscription access under -

    Subscriptions > [your subscription] > Access control (IAM) and click on Add > Add role assignment

    Choose some strong role as per your requirement for example Owner or Contributor. Assign access to your principal name in this example which is devopsadmin@... and save.

    Now the main part comes. As you mentioned you don't care about old data, create a new DevOps Organization

    1. Open a private/incognito browser window
    2. Visit: https://dev.azure.com
    3. Sign in as: devopsadmin@<yourtenant>.onmicrosoft.com this will be the one which you have set in the previous step

    enter image description here

    1. Create a new DevOps org:
      • Name: stephens-org (or any name)
      • Region: your preferred region
    2. You’ll be prompted to create a new project. Choose your name (e.g. Stephens-Demo-Project) Now the org is fully owned by an Entra-native user.

    enter image description here

    Link DevOps to Microsoft Entra and it should work. Navigate to Organization Settings > Microsoft Entra. Click "Connect directory"

    It will automatically detect and connect to your Default Directory

    enter image description here


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.