YAML: Using a Private Pool in Build definition | AzureDevOps
Generally the default YAML uses the Azure pipelines agent and you may need to change it.So instead of something like this To use a private agent, use the one below
Generally the default YAML uses the Azure pipelines agent and you may need to change it.So instead of something like this To use a private agent, use the one below