Manually triggered stage cannot be the single stage in pipeline

Azure Pipelines provides possibility to trigger stages manually by setting the flag in the stage definition like it is described in the below documentation:

Stages in Azure Pipelines - Azure Pipelines
Learn how to organize your jobs into stages, define dependencies, and set conditions. Understand how to implement deployment strategies and use YAML or a Classic pipeline to define stages.

Stages in Azure Pipelines - official docs

It is super easy to implement it. But you need to also remember that if the stage is marked to be triggered manually, then it cannot depend on other stages, so you need to set property dependsOn: [].

And if your pipeline contains only one stage, then it also cannot be marked as manual, because you will get the below error:

Error in Azure DevOps when there is single stage marked as manually triggered

Then you need to remove property trigger: manual from the stage definition or set it back to the default value: trigger: automatic.