Hello @niels.willems,
Can you have a look at How to block the merge of Pull Requests when SonarQube Quality Gate is failed, with Azure DevOps and let us know if it helps.
If that’s something else you want to achieve (or something else that does not work) can you clarify what ?
Regards,