2
votes

I am using Azure DevOps with a Microsoft Account (@outlook.com). The same account is co-administrator of 3 different Azure Subscriptions.

I am trying to create a new Service connection from my Azure DevOps Project to my newest Azure Subscription (out of the 3).

When I:

  1. Go to my project's Project Settings view and click on the Service Connections tab.
  2. Click on the 'New service connection' button.
  3. Choose 'Azure Resource Manager' for the connection type.
  4. Choose 'Service Principal (automatic)' authentication method.

I find that the drop-down list for Subscription is only showing my two older subscriptions and my newer subscription is missing, as shown here:

New Azure service connection dialog

How can I get my third, newer, subscription to appear in the 'Subscription' list?

I've tried the following without success:

  • Made my Microsoft Account to be a 'Co-administrator' of the Azure Subscription.
  • Gave my Microsoft Account the 'Owner' Role for the Azure Subscription.
  • Added my Microsoft Account to the 'Global Administrators' group in Azure Active Directory.
  • Set 'Guest users permissions are limited' to 'No' in the In my Active Directory's External collaboration settings.

UPDATE: The subscription that's not shown in the list is currently a "free-tier" subscription whereas the 2 subscriptions that are shown are "pay-to-go". Could this be the reason for my problem?

2
two newer subscriptions are free tier?Sajeetharan
@Sajeetharan thanks. There is one new subscription and yes, it is free-tier at the moment.urig
@Sajeetharan thanks but I don't see any direct reference to free-tier Azure subscriptions not being accessible to Azure DevOps...?urig
that's my guess, in order to check you need to create a support ticket and seeSajeetharan

2 Answers

2
votes

I can finally see my Azure Subscription in the Subscription list. I'm not 100% sure which step I took is responsible for fixing the issue so I'll list 2 things that I did:

  1. In the Azure Portal I created a new App Registration, this time having the "Supported account types" setting set to "Accounts in any organizational directory ... and personal Microsoft account ...": enter image description here

  2. In PowerShell and using the AzureAD module I reset the Service Principal Key Credential:

    a. Ran PowerShell (v5.1) "as Administrator".

    b. Install-Module -Name AzureAD

    c. Connect-AzureAD -TenantId <tenant-id-from-the-app-registration-overview>

    b. New-AzureADServicePrincipalKeyCredential -ObjectId <object-id-from-the-managed-application-overview>

PS - The Subscription's being in the free-tier seems to be irrelevant to the issue.

0
votes

You can try accessing DevOps in a private mode, it simply gets the existing subscription.