The default YAML pipeline Azure DevOps creates for you looks like this:
This pipeline is triggered every time a change is pushed to the master branch as you can see in the ‘trigger’ section.
But I wanted to trigger this pipeline only manually. To achieve this you need to update the pipeline and set the ‘trigger’ value to ‘none’:
More information: Azure Pipeline Triggers