We have this project in Azure Devops: https://dev.azure.com/mirkadev/TwoSonarProblem/_build
It has one repo, that contains two projects. The projects are built individually in different jobs in the same Azure devops build pipeline.
On master branch we have build validation policy, so the build pipeline is run for each pull request.
When the build is run and we go the the build output we see both sonarcloud validations.
When we go to the branch policies to set the sonar status policy, we see only one output called projectname/codecoverage.
The sonar check in the build jobs seem to output the results with the same name and the later job to finish effectively overwrites the status of the first one.