Code coverage after initial analysis

If you haven’t been collecting code coverage on your project, and then you begin providing a coverage report file, will the percentage of code coverage not be taken into account if it’s not relevant to new code?

I create a project on sonarcloud
I analyze it through Azure DevOps - no code coverage report is being provided
Sonarcloud reports 0% code coverage, because none has been provided
I update my pipeline to generate a coverage reports and point sonarcloud to the coverage report
Sonarcloud reports no code coverage

Is this expected?

It’s not expected. The coverage report should apply to the code that is there.

I suspect the coverage report is not imported correctly. How do you configure it? Do you see something in the logs about the coverage report files? I believe there should be something about the files found and imported, or not found.