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.

Arguments

The Arguments that you can configure on the utility task:

Argument Description
Azure function URL The URL of the Azure function to invoke.
Function key The value of the available function or the host key for the function to invoke.
Request body The request body for the Azure function call.
Execution mode Synchronous mode (the default), or Asynchronous call where the Azure function calls back to update the timeline record.
Response parse expression How to parse the response body for success.

 

Phase

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.

 

image

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

image

 

And configure the action as needed.

Related Posts

The securitydata Azure resource group Most of the times companies have rules in place for managing their Azure environment. The main rules that should be in place are “Azure Policies” and ...
Point to Site VPN Client won’t install To connect an Azure App Service to a on-premise database you can make use of different solutions. Two of those solutions are: Hybrid Connection ...
VSTS Extension for Azure Role Based Access Control Today I published an extension for Visual Studio Team Services (VSTS) that gives you the ability to add and remove role based access assignments in Az...
Publish PowerBI files with Visual Studio Team Services Today I published an extension for Visual Studio Team Services (VSTS) that gives you the ability to deploy PowerBI files (pbix) to PowerBI.com. It use...
VSTS build or release agent on a self hosted machine in Azure or on premise You can think of many situations where you would like to create a self hosted machine for Visual Studio team services (VSTS). Installing and configuri...
My first public VSTS Extension A couple of days ago I started developing extensions for Build and Release pipelines of Visual Studio Team Services (VSTS). One of these extensions is...

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.