With designer/class build pipeline, you can define pipeline variables with default values to be passed into the tasks. How do I do the same for a YAML-based pipeline?
when you edit the build definition (not when you create it, at least with default experience). you'd need to click on 3 dots and pick variables from the list:
and there you would be able to define variables, and they would have a checkbox - Settable at queue time.