Sonarqube not working on Dev Branch

Check out this topic: Error: To use the property "sonar.branch.name" and analyze branches

There are a few solutions; there is a community plugin that will fix this issue, you can create a custom build task in Azure, or you can use command line tasks to workaround.

I switch to command line tasks to run the Sonar scan while researching then implementing the community plugin.