Share via

Issue while adding a Service Connection in Azure Devops

Joel Yash 20 Reputation points
2025-08-30T10:44:41.0366667+00:00

While trying to add a Service connection, the resource group doesn't fetch the RGs and it keeps loading. Due to this I am not able to create a service connection. Any suggestions?

User's image

Azure DevOps
0 comments No comments

Answer accepted by question author

Suwarna S Kale 4,526 Reputation points Volunteer Moderator
2025-08-30T12:22:38.4233333+00:00

Hello Joel Yash,

Thank you for posting your question in the Microsoft Q&A forum. 

This issue typically arises due to permissions, connectivity, or service delays. Below are the primary steps to resolve it: 

  • Check Permissions - Ensure your Azure account (or the account used in your pipeline/service connection setup) has the necessary permissions in Azure Active Directory and the target subscription. At a minimum, it should have Reader rights on the subscription to list resource groups. For creating a service connection, it might need Owner or User Access Administrator roles to assign roles (like Contributor) to the service principal. 
  • Subscription Selection  - Verify you’ve selected the correct subscription in the Azure Resource Manager service connection dialog. Sometimes, switching subscriptions and switching back can refresh the list. 
  • Browser or Portal Issues  - Clear your browser cache or try an incognito window. Alternatively, use a different browser or device to rule out local issues. 
  • Azure DevOps Permissions - Ensure you have adequate permissions in Azure DevOps to create service connections (e.g., Project Administrator or equivalent). 
  • Manual Entry - If the dropdown doesn’t populate, try typing the resource group name manually (if the UI allows it). Some interfaces support manual input. 
  • API Delays or Outages  - Check the Azure Status Dashboard for any ongoing issues with Azure Resource Manager or Azure DevOps that might cause delays in fetching data. 
  • Use Existing Service Principal  - Instead of auto-creating a new service principal, try creating one manually in Azure AD (App Registration) and then use the "Manual" option in the service connection setup to provide the App ID, tenant ID, and secret. 
  • Alternative Method - Create the service connection using Azure CLI or PowerShell if the UI is unresponsive: 

powershell 

az devops service-endpoint azurerm create --name "MyServiceConnection" --azure-rm-subscription-id "00000000-0000-0000-0000-000000000000" --azure-rm-subscription-name "MySubscription" --azure-rm-tenant-id "00000000-0000-0000-0000-000000000000" --azure-rm-service-principal-id "00000000-0000-0000-0000-000000000000" --azure-rm-service-principal-key "mySecret" 

  • Check Network Issues - If you’re on a corporate network, firewalls or proxies might block requests to Azure DevOps or Azure Resource Manager. Try from a different network. 

By addressing these areas, you should be able to resolve the loading issue and create the service connection successfully. If problems persist, contact Azure support for further investigation. 

 

Please, let me know the response helps answer your question? If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. 🙂 

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Pashikanti Kumar 1,725 Reputation points Microsoft External Staff Moderator
    2025-09-03T07:31:18.0266667+00:00

    Hi Joel Yash,

    Thank you for posting your question in the Microsoft Q&A forum

    Role Assignments

    The Service Principal (SPN) used in the service connection may lack Contributor or Reader permissions on the subscription or resource group.

    If the Service Principal is not assigned any role on the subscription, the dropdowns won’t populate.

    Ensure the Service Principal (SPN) has the correct Azure Role Assignments.

    No Resource Groups Exist

    If the selected subscription has no resource groups, the dropdown will appear to load indefinitely.

    Was this answer helpful?


Your answer

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