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

AKS (Kubernetes) and no connection could be made because the target machine acti... A client of my had an error while connecting to different resources within their Kubernetes cluster in Azure (AKS). Kubectl error On the kubectl com...
Kubernetes (AKS) attached to Azure Storage (Files) Kubernetes (AKS) can be used for many situations. For a client we needed to make files available trough a Kubernetes Pod. The files needed to be share...
Resource Group deployment via ARM templates When deploying an Azure Resource Manager (ARM) template you have to create a resource group within Azure. To deploy a template via script your script ...
Azure Managed Service Identity and Local Development Instead of storing user credentials of an external system in a configuration file, you should store them in the Azure Key Vault. Before MSI (Managed S...
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 ...

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.