SonarScanner MSBuild error

I am using trial version Developer edition (sonar-scanner-msbuild-5.0.4.24009-net46) and testing a sample project, but getting the below error when executing MSBuild command of SonarScanner :

The token you provided doesn’t have sufficient rights to check license.
17:36:31.384 Pre-processing failed. Exit code: 1

Hi @lakshmi.dhulipalla and welcome to the community !

Do you pass any sonar.login parameter in your Scanner’s command line ?

Thanks.

Mickaël

Hi Mickael,

I set the login and password in SonarQube.Analysis.xml file.
I get the error when executing the below command :

SonarScanner.MSBuild.exe begin /k:“MySonarProject” /d:sonar.host.url= /d:sonar.login=“f024c26d6520ed295e005f1fec1f76e2b66b5d67” Thanks, Lakshmi

Can you try without the double quotes around the value of the login ?

Same error got : The token you provided doesn’t have sufficient rights to check license.