Your title doesn’t seem to relate to the body of your post. Can you try adding -Dsonar.scanner.dumpToFile=[path to file] to your analysis command and then posting the resulting file here, redacted as necessary?
##[section]Starting: Publish Quality Gate Result
==============================================================================
Task : Publish Quality Gate Result
Description : Publish SonarQube's Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version : 5.6.1
Author : sonarsource
Help : Version: 5.6.1. [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
==============================================================================
##[error][SQ] Task failed with status FAILED, Error message: The last analysis failed because it would have caused your server-wide lines of code total to exceed your 100000 limit.
##[section]Finishing: Publish Quality Gate Result
we were adding new source for scanning which have 70k line of code due to which we were facing this issue, now we excluded some test project and successfully scanned. Thanks