Importing Azure DevOps organization
This page helps you understand how to import your Azure DevOps organization into SonarQube Cloud and explains prerequisites and key procedures.
When you import an Azure DevOps organization to SonarQube Cloud, the corresponding Organization is created in SonarQube Cloud and is bound to the DevOps platform organization. Each SonarQube Cloud organization corresponds one-to-one with an Azure DevOps organization. See Binding with the DevOps platform for more information.
SonarQube Cloud does not support linking an organization to more than one DevOps platform. If you want to link to more than one, you will need to create a separate organization to link to each DevOps platform.
The user account you used for the import is automatically assigned to the organization’s owners group which grants you administration rights on the organization. See User group concept for more details.
You cannot unbind nor change the binding of an organization bound on Azure DevOps.
Prerequisites
You must be an administrator of the Azure DevOps organization.
In SonarQube Cloud, each organization is assigned a subscription plan. Before importing your organization, choose the subscription plan suited to your needs. See Subscription plans for more information. In particular, determine the number of Lines of Code (LOC) you need. See LOC-based pricing for more details.
Step 1: Create a PAT on the Azure organization
SonarQube Cloud uses an Azure DevOps user account to import your Azure DevOps organization and repositories. You must provide a Personal Access Token (PAT) from this account. The PAT will be stored in the respective SonarQube Cloud organization. We highly recommend that you use a dedicated technical user account in Azure DevOps.
Be aware of the following PAT failure points:
Azure PATs require an expiration date. Check the Microsoft documentation for details when creating your PAT.
Azure requires that a user log in every 30 days, or it automatically kills a PAT; this action may cause your related pipeline to fail. Here is an Azure Q&A on this topic.
Step 2: Import your Azure organization
To import your Azure organization to SonarQube Cloud:
Log in to SonarQube Cloud with your Azure DevOps account. If you’re a member of an enterprise, you may use any of your DevOps Platform accounts or your SSO account. In that case, see Using multiple accounts for important insights.
At the top right of the SonarQube Cloud interface, select the ✚ (plus) menu and select Create new organization. The Create an organization page opens.
Under Import from a DevOps platform, select the Azure DevOps button.
Follow the instructions.
Paste the PAT you created in Step 1 to Personal Access Token,.
Select Continue.
In Import organization details, SonarQube Cloud suggests a Name and Key for your SonarQube Cloud organization. The key is unique across all organizations within SonarQube Cloud. You can accept the suggestion or change it manually. The interface will prevent you from changing it to an already existing key.
Select Add additional info to add:
An avatar: a small image representing the organization and displayed on the UI near the organization name.
A description of the organization.
A URL: the URL of the homepage of the organization displayed on the UI.
In Choose a plan, select the subscription plan for your organization. See Subscription plans for more details.
If you selected a paid plan, select the number of Lines of Code (LOC) for your plan and follow the instructions to enter your billing and payment information.
Select Create Organization. The organization is created and opened in SonarQube Cloud.
Related pages
Last updated
Was this helpful?