Forum Discussion
comcastnet1935
Nov 16, 2022Copper Contributor
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 ...
comcastnet1935
Nov 17, 2022Copper Contributor
I said at the beginning "I was looking for examples of using the Azure DevOps Rest API from within a pipeline yml file". Pretty much indicates that I am new to this.
After more research, it appears that the way to use the Rest API in a pipeline yml file is to use PowerShell Invoke-RestMethod \ "$URL = ", and the 'InvokeRESTAPI@1' is only used in Agentless jobs.
Of 40 + people who looked at this posting, no one knew that?