---
title: Continuous Delivery with VSO Build vNext  - VSO2GO Episode 2
description: If you’re following along our journey, welcome back! If you just joining us, please take a look at Episode 1 - ASP.NET with Azure Active Directory.
---

[InCycle Software's Application Modernization and DevOps Blog ](https://blogs.incyclesoftware.com)

# [Continuous Delivery with VSO Build vNext - VSO2GO Episode 2](https://blogs.incyclesoftware.com/2015/08/continuous-delivery-with-vso-build-vnext/)

 Written by [Alex Turner](https://blogs.incyclesoftware.com/author/alex-turner) | Aug 27, 2015 6:00:48 AM

If you’re following along our journey, welcome back! If you just joining us, please take a look at [Episode 1 - ASP.NET with Azure Active Directory](https://incyclesoftware.com/2015/08/asp-net-with-azure-active-directory).

In this second episode we will walk through how to take an ASP.NET application and configured it for Continuous Deployment with Visual Studio Online. When we are done the application should automatically Build, run Unit Tests and Deploy to Azure either via a manual process or Continuous Deployment when we check in changes to source control.

The very first thing I like to do on any project is to take advantage of the great set of tools we have at our disposal these days. The amount of time, resources and effort this process saves is incredible. A Continuous Deployment / Release Management process should be implemented for every solution, it is the easiest way to increase value and decrease cost. Let’s jump right in!

For the following steps I’m using Visual Studio Online.

1. Login to your Visual Studio Online account. Choose your project from the **Recent**** projects & teams **or click** Browse.**
2. Once you are in the project choose the **Build **tab at the top of the page. The select the big green **Action **plus sign.

<https://blogs.incyclesoftware.com/hs-fs/file-3323141187-png/blog-files/episode2_image001.png>

This will bring up the **Definition Templates** dialog.

1. Select the **Deployment** tab and** Azure Website **template (shouldn’t this be Web Apps now... just saying). Click **OK.**

1. Once in the **Definitions** editor I’ve gone ahead and deleted the **Index Sources & Publish Symbol **and **Publish Build Artifacts** steps, as we won’t covert these in this series. The center of your screen should look something like mine below.

<https://blogs.incyclesoftware.com/hs-fs/file-3323141207-png/blog-files/episode2_image005.png>

1. Starting at the top step **Visual Studio Build **click the ellipses to the right of the **Solution** box and select your solution file from source control. Click **OK**

<https://blogs.incyclesoftware.com/hs-fs/file-3323141217-png/blog-files/episode2_image010.png>

1. You can also rename this step by using the **Rename** blue pencil if you so desire.

<https://blogs.incyclesoftware.com/hs-fs/file-3323141227-png/blog-files/episode2_image007.png>

1. Select the **Repository** tab, then select the repository folder in the **Mappings** section

1. Select the **Triggers **tab, then select the repository folder in the **filters** section. Ensure the **Continuous integration (CI)** checkbox is selected

<https://blogs.incyclesoftware.com/hs-fs/file-3323141217-png/blog-files/episode2_image010.png>

1. Now go back and select the **Build **tab, then click the **Manage **link to the right of the **Azure Subscription **text box. This will open a separate window to register your Azure subscription as a new service endpoint in Visual Studio Online. In new window click the **New Service Endpoint** green plus sign and chose the **Azure** option.

<https://blogs.incyclesoftware.com/hs-fs/file-3323141257-png/blog-files/episode2_image011.png>

New Window

<https://blogs.incyclesoftware.com/hs-fs/file-3323141267-png/blog-files/episode2_image012.png>

1. The **Add Azure Subscription** dialog will open. Fill in your **Subscription Id** and **Subscription certificate. **You can get your subscription id and certificate by using the link in the lower right corner of the dialog to download you **publishsettings.xml** file and opening it in notepad.

<https://blogs.incyclesoftware.com/hs-fs/file-3323141277-png/blog-files/episode2_image014.png>

Click** OK.**

1. Go back to the browser window that has the **Build Definitions** editor. Click the refresh icon next to the Azure Subscription text box. Then select the subscription just registered in the drop down. Type the name of you Web App in the **Web App Nam**e section. You will need to type the **Web App name**, the drop down does not currently appear to work. Select the **Web App Location **from the drop down. Click the **Save** icon in the upper right corner.

**Note: **All this information must match your application. If you are not sure check in the Web App section of your Azure Management portal.

<https://blogs.incyclesoftware.com/hs-fs/file-3323141257-png/blog-files/episode2_image011.png>

1. Now we have a couple of options on how to queue a Build, Test, and Deploy. For our purpose now, we will just manually queue up a Build Test Deploy from VSO, but checking a change into source control via Visual Studio initiate the same process. Select the arrow to the left of your build name and choose **Queue Build. **Click **OK **in the **Queue New Build for Project Name** dialog.

<https://blogs.incyclesoftware.com/hs-fs/file-3323141307-png/blog-files/episode2_image020.png>

The screen will automatically change. You will be able to watch the Build, Test and Deploy to Azure process. Once completed the application will be live on the URL chosen in the previous steps.

<https://blogs.incyclesoftware.com/hs-fs/file-3323141317-png/blog-files/episode2_image021.png>

At this point I suggest looking through the log to get an idea on what is transpiring during this process. Then sit back and ponder the amount of time and headaches that can be saved by automating this process for all applications and environments from Dev, Test and Production. Hmmm…….

Watch for the upcoming Episode 3 – Going mobile with Visual Studio Online API where we turn our VSO2GO application from a basic ASP.NET to a functioning Work Item portal for Visual Studio Online.

**Alex Turner**

Sr. Azure Consultant | InCycle Software**  
**

MCSD | Azure Solution Architect

Central Region

Alex.Turner@InCycleSoftware.com

 

**Do you have an EA with Microsoft? You could be eligible for thousands of dollars in free ALM or Azure consulting! Contact us to learn how.**

[View full post](https://blogs.incyclesoftware.com/2015/08/continuous-delivery-with-vso-build-vnext/)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Alex Turner"
  },
  "dateModified" : "2017-07-20T16:38:30.891Z",
  "datePublished" : "2015-08-27T06:00:48Z",
  "headline" : "Continuous Delivery with VSO Build vNext  - VSO2GO Episode 2",
  "image" : {
    "@type" : "ImageObject",
    "height" : 429,
    "url" : "http://cdn2.hubspot.net/hub/707613/file-3323141187-png/blog-files/episode2_image001.png",
    "width" : 496
  },
  "mainEntityOfPage" : "https://blogs.incyclesoftware.com/2015/08/continuous-delivery-with-vso-build-vnext/",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60.0,
      "url" : "https://cdn2.hubspot.net/hubfs/707613/logo-InCycle-New-Blue---transparent.png",
      "width" : 195.91837
    },
    "name" : "InCycle Software Blog"
  }
}
```