Search code examples
azureazure-devopsazure-subscription

Unable to see Azure Subscriptions in the Azure DevOps Service Connection


enter image description here

I'm the owner of my Azure Portal Subscriptions and also my DevOps Portal Organizations also. But I'm not getting the Azure Subscriptions while creating service connection in Azure DevOps Portal.

I tried Googling and applying some of the steps like

  1. checking the access of subscription, app registration,
  2. https://learn.microsoft.com/en-us/troubleshoot/azure/devops/issues-service-connection-task#unable-to-see-the-azure-subscriptions-while-creating-a-service-connection-even-after-having-the-necessary-permissions
  3. You don’t appear to have an active Azure subscription when creating new Kubernetes service connection in Azure DevOps

etc. but no luck


Solution

  • Converting my comments as answer:

    To fix the issue You don’t appear to have an active Azure subscription while creating service connections in Azure Devops, troubleshoot using the below steps:

    Check 1:

    • Click on the profile in Azure Devops (or) Portal, Check if you are in your directory which is valid one.
    • If not, click on the Switch Directory and Select Default directory.

    enter image description here

    Check 2:

    Security details should be in disabled state.

    • Go to Portal=>search for Tenant properties=> Manage security details=>check if security details option is disabled or not. If this option Enabled, change it to disabled

    enter image description here

    • Then the subscriptions will be listed while creating Service Connections:

    enter image description here

    • Make sure your subscriptions are active in portal: enter image description here