Invoke Azure Function in your Visual Studio Team Services CI/CD pipeline

A utility task is available for Visual Studio Team Services (VSTS) to invoke an http triggered Azure function. The ability to invoke a Function from your CI/CD pipeline offers a lot of new possibilities within those pipelines.


The Arguments that you can configure on the utility task:

Azure function URLThe URL of the Azure function to invoke.
Function keyThe value of the available function or the host key for the function to invoke.
Request bodyThe request body for the Azure function call.
Execution modeSynchronous mode (the default), or Asynchronous call where the Azure function calls back to update the timeline record.
Response parse expressionHow to parse the response body for success.



When adding this task to a CI/CD pipeline you have to add a “Agentless phase”. To invoke an Function an agent isn’t required.



In the agentless phase add the “Invoke Azure Function” task.



And configure the action as needed.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.