Step references task InvokeRESTAPI at version 1.152.1 which is not valid for the given job target Step references task InvokeRESTAPI at version 1.152.1 which is not valid for the given job target azure azure

Step references task InvokeRESTAPI at version 1.152.1 which is not valid for the given job target


The InvokeRESTAPI@1 it's server job task (agentless job in the classic editor), not a regular task that can run on an agent.

You need to put it in server job in this way:

pool: server

More info you can find here.