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 finished and I wanted to share it with the community.

 

VSTS Extension

The extension that I created is a build or release tasks that can be used to extract the raw file content and place that content within a variable. The task itself only needs two properties:

  • File path: Path to the file from which you want to extract the file content.
  • Variable Name: The name of the variable wherein you want to place the file content.

 

VSTS - File Content to Variable

 

Use Case

An example use case for this extension is saving the content of a query (during a project we extracted the query from a “.asaql” file) into a variable and used that variable to override a parameter within our Azure Resource Management Template. With this setup we configured a Release Pipeline for our Stream Analytics service.

Links

 

GitHubhttps://github.com/MaikvanderGaag/msft-vsts-extensions

Marketplacehttps://marketplace.visualstudio.com/items?itemName=maikvandergaag.maikvandergaag-file-to-variable

Issueshttps://github.com/MaikvanderGaag/msft-vsts-extensions/issues

Related Posts

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...
Protect your master Branch in VSTS You can set up permissions and policies to control who can read and update code in a branch on your Git repo within VSTS. You can set permissions for ...
Azure Function CI – 3. Deploying the Azure Function from the Build within VSTS This post is the third and last one in a series of posts and will help you by deploying a CI build for a Azure Function. Prerequisites This blog post ...
Azure Function CI – 2. Create a CI Build for the Azure Function This post is the second one in a series of three posts and will help you by creating a CI build for a Azure Function. Prerequisites This blog post i...
Azure Function CI – 1. Creating a Pre-Compiled Azure Function As mentioned in the overview Azure Function provide event-based serverless computing that make it easy to develop and scale your application, paying o...

Leave a Reply

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