Forum Discussion

comcastnet1935's avatar
comcastnet1935
Copper Contributor
Nov 16, 2022

You can only execute a Rest API Task through an agentless job?

I was looking for examples of using the Azure DevOps Rest API from within a pipeline yml file (without using postman).  Get info about another build, get or update Board issues info, whatever.

 

I found Invoke HTTP REST API task - Azure Pipelines | Microsoft Learn, which says "This task can be used in only an agentless job".

 

I found this... Azure Pipelines- Agentless/Server jobs (bartwullems.blogspot.com)

The header says...Azure Pipelines- Agentless/Server jobs".  "Tasks in a server job are orchestrated by and executed on the server (Azure Pipelines or TFS). A server job does not require an agent or any target computers."

 

Is this saying that only "Azure DevOps Server" (downloaded and installed on your own hardware), can run agentless jobs, and thus if you are using "Azure DevOps Service (the cloud), you cannot use the Rest API task in a pipeline?

 

Resources