Introduction
We can configure our Visual Studio Team Service project, which can automatically build and deploy to Azure app Services. This article tells you how to configure a basic ASP.NET WEB API application in Visual Studio Team service with automatic build and release to Azure app service.
Prerequisites
- Visual Studio 2015+
- Azure subscription
This article flows, as per the following,
- Create a new project in VSTS with GIT version control
- Add a existing project to the newly created GIT repo from visual studio
- Configure a build in VSTS
- Configure a release in VSTS with continues deployment in Azure App Service
Create a new project in VSTS with GIT version control
Sign in to your Visual Studio Team Service account
Click on new project from the home page

Name your team project, in my case I named it KendoGrid, I have selected a GIT from the version control with agile work process, we can choose either GIT or Team Foundation Version control based on project need,
Add an existing project to the newly created GIT repo from visual studio
I have an existing project in my local machine which I’m going to publish to VSTS GIT, open the existing project in visual studio, File->open
Once the project is opened, in the right bottom
of visual studio you can find Add to source control, click it, as shown in the below figure,

The team explorer window will be opened, you can find two options 1. Push to Visual Studio Team Service.
and 2. Push to Remote Repository We already created a GIT repo in TFS so we can do push to remote repository.

Configure a build in VSTS
Open the repository in VSTS you can find set up a build in right top corner, just click on it to configure a build,

The create new build definition window will be opened as shown in the below figure,
A new create build definition window will be opened with some list of templates, as we are working on an ASP.NET site I’m going to select ASP.NET(Preview) Template, click on next to change the settings,
In the settings window check Continue Integration as shown in the above figure and click create. Now all the packages which we need for the build will be automatically loaded up as shown in the below figure.
Once all changes are done just click on save, from my side I haven't done any changes I'm just left with default settings










Join the conversation! Your thoughts help the community grow.