# Azure Devops Scanning portfolio

**URL:** <https://community.sonarsource.com/t/azure-devops-scanning-portfolio/95505>\
**Category:** SonarQube Server / Community Build\
**Tags:** azuredevops\
**Created:** [July 11, 2023, 3:03pm UTC](https://community.sonarsource.com/t/azure-devops-scanning-portfolio/95505 "2023-07-11T15:03:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [July 12, 2023, 6:40pm UTC](https://community.sonarsource.com/t/azure-devops-scanning-portfolio/95505/4 "2023-07-12T18:40:11Z")

</div>

Hi,

Okay! I didn’t understand what you meant by “scans to the proper portfolio”.

The automatic options are to include projects in that `Credit` portfolio by name/key regex, or by project tags. So unless all the projects under Debit have a common substring in their names or keys, I don’t think this is going to be automatable natively within SonarQube.

Your best bet is to script this using the Web APIs.

The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find [this guide](https://community.sonarsource.com/t/how-to-reverse-engineer-the-sonar-web-api/66810) helpful.

&nbsp;  
HTH,  
Ann

---

_[View the full topic](https://community.sonarsource.com/t/azure-devops-scanning-portfolio/95505)._
