How to run SonarCloud for multiple project names. Could you please suggest how to create for Project-02, 03, 04

Azure Devops yaml file using in multiple projects and i need to hard code the Project name while running the pipeline.

- task: SonarCloudPrepare@1
   inputs:
    SonarCloud: 'SonarCloud'
    organization: 'unipe'
    scannerMode: 'MSBuild'
    projectKey: 'Project-01'
    projectName: 'Project-01'

Hi @nikhilbs2 welcome to the community.

What are you trying to achieve at the end ?

Thanks.
Mickaël

Hi @mickaelcaro Thank you. I need to make Project key and Project name as variables. We have multiple projects in azure so we shouldn’t hardcode.

By adding variables its failing as `below snapshots.

And if you hardcode one project for instance, does the analysis succeed ?