AzureDevOps Build failing (400) Bad Request on task Prepare analysis on SonarQube

Prepare analysis is failing with an error:

2020-03-25T11:36:33.6254034Z 12:36:33.612 Fetching analysis configuration settings…
2020-03-25T11:36:33.8575207Z ##[error]12:36:33.853 Failed to request and parse ‘https://sonarcloud.io/api/qualityprofiles/search?projectKey=Test’: The remote server returned an error: (400) Bad Request.
2020-03-25T11:36:33.8575644Z 12:36:33.853 Failed to request and parse ‘https://sonarcloud.io/api/qualityprofiles/search?projectKey=Test’: The remote server returned an error: (400) Bad Request.
2020-03-25T11:36:33.8591533Z
2020-03-25T11:36:33.8592279Z ##[error]Unhandled Exception:
2020-03-25T11:36:33.8616851Z ##[error]System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.<>c__DisplayClass5_0.b__0()
at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.DoIgnoringMissingUrls(Action op)
at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.TryDownloadIfExists(String url, String& contents)
at SonarScanner.MSBuild.PreProcessor.SonarWebService.<>c__DisplayClass6_0.b__0()
at SonarScanner.MSBuild.PreProcessor.SonarWebService.DoLogExceptions[T](Func1 op, String url, Action1 onError)
at SonarScanner.MSBuild.PreProcessor.SonarWebService.TryGetQualityProfile(String projectKey, String projectBranch, String organization, String language, String& qualityProfileKey)
at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.FetchArgumentsAndRulesets(ISonarQubeServer server, ProcessedArgs args, TeamBuildSettings settings, IDictionary2& serverSettings, List1& analyzersSettings)
at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.DoExecute(ProcessedArgs localSettings)
at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
at SonarScanner.MSBuild.BootstrapperClass.Execute()
at SonarScanner.MSBuild.Program.Execute(String args, ILogger logger)
at SonarScanner.MSBuild.Program.Main(String args)
2020-03-25T11:36:33.8617444Z System.Net.WebException: The remote server returned an error: (400) Bad Request.
2020-03-25T11:36:33.8617514Z at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
2020-03-25T11:36:33.8617598Z at System.Net.WebClient.DownloadString(Uri address)
2020-03-25T11:36:33.8617660Z at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.<>c__DisplayClass5_0.b__0()
2020-03-25T11:36:33.8617723Z at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.DoIgnoringMissingUrls(Action op)
2020-03-25T11:36:33.8619068Z at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.TryDownloadIfExists(String url, String& contents)
2020-03-25T11:36:33.8619134Z at SonarScanner.MSBuild.PreProcessor.SonarWebService.<>c__DisplayClass6_0.b__0()
2020-03-25T11:36:33.8619218Z at SonarScanner.MSBuild.PreProcessor.SonarWebService.DoLogExceptions[T](Func1 op, String url, Action1 onError)
2020-03-25T11:36:33.8619292Z at SonarScanner.MSBuild.PreProcessor.SonarWebService.TryGetQualityProfile(String projectKey, String projectBranch, String organization, String language, String& qualityProfileKey)
2020-03-25T11:36:33.8619563Z at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.FetchArgumentsAndRulesets(ISonarQubeServer server, ProcessedArgs args, TeamBuildSettings settings, IDictionary2& serverSettings, List1& analyzersSettings)
2020-03-25T11:36:33.8619661Z at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.DoExecute(ProcessedArgs localSettings)
2020-03-25T11:36:33.8619728Z at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
2020-03-25T11:36:33.8619782Z at SonarScanner.MSBuild.BootstrapperClass.Execute()
2020-03-25T11:36:33.8619856Z at SonarScanner.MSBuild.Program.Execute(String args, ILogger logger)
2020-03-25T11:36:33.8619912Z at SonarScanner.MSBuild.Program.Main(String args)