'Azure DevOps: Why is my subscription not shown when creating a new service connection?
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:
- Go to my project's Project Settings view and click on the Service Connections tab.
- Click on the 'New service connection' button.
- Choose 'Azure Resource Manager' for the connection type.
- 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:
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?
Solution 1:[1]
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:
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 ...":
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.
Solution 2:[2]
This is what solved it for me:
- Go to your MS Azure account.
- Search and go to 'Tenant Properties'.
- Click on Manage Security Defaults.
- Turn these off
Solution 3:[3]
You can try accessing DevOps in a private mode, it simply gets the existing subscription.
Solution 4:[4]
See if you have a "default subscription filter" set on the Portal Settings page. Seems to add one by default.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | urig |
Solution 2 | |
Solution 3 | piyush gakre |
Solution 4 | Dave M |