07Sep

Continuous Integration/ Continuous Deployment VSTS

Following the below steps you can build and deploy your ASP.NET  app to Azure from either Visual Studio Team Services 

Upload your code

Upload your latest code to Visual Studio Team Services repository.

Create the definition

  1. Login to your VSTS account

https://xxxxxxxx.visualstudio.com/

  1. Open your team project in your web browser.

https://xxxxxxxx.visualstudio.com/MyFirstProject

Verify that the VSTS version control is updated with the latest code

  1. Create a build definition.

·         After you have a Windows build agent configured, following the below steps you can define a CI build process that compiles and tests your .NET app whenever your code is checked in to the version control.

·         Goto the build tab on top of the page and create a new build defnition

      img1

·         Choose the Visual Studio Build template

     img2

·         Specify the code you want to build and select the continuous integration (CI) trigger.

img3

·         Save the defnition after providing the required parameters in each build steps you have added in your definition.

 

img4

    Queue your new definition to make sure all the build steps for executed successfully. You can follow the execution of the build process from the console.

 

img5

img6

img7

 

You now have the continuous integration setup for your build. And the build runs whenever there is a check-in to codebase.

 

4.       Similar to the build definition, we need to define a release definition.

·         Navigate to your project and click on the release tab,

·         Add a new release definition and choose the type of template and create the new definition.

img8

 

img9

 

·         Make sure the subscription you want to use is selected.

·         If a subscription is not available, then add a service endpoint by clicking on mange

·         Then choose the name of the webapp which had been created for release.

·         Web Deploy Package: browse and choose the path of the package you want to release.

 

 

img10

 

 

·         In the Triggers tab select how the new release should be created. For CD choose continuous deployment and click save

 

img11

 

·         Click on the (+) release button and create a new release and select the build version from the drop down (this can done manually or go ahead and queue the same build again so the release is created automatically and the package gets deployed).

 

img12

 

·         You can follow the release on the logs tab within the release you created.

 

img13

You now have the CI/CD setup for your project.

Once the release is successful you can go to the azure webapp URL and find the updated version.

Related

Azure Blob Storage: The PowerShell Way!

Hi folks!Great to see you again.This blog post is purely based on Azure Blob Storage: The PowerShell...

Read More >

Create a Windows Server 2012 R2 VM using ARM in Azure PowerShell

Hi Folks,In this Blog Post we will learn how to create an Azure ARM Virtual Machine using Azure Powe...

Read More >

How to Sync On-premise AD with Windows Azure AD using Azure AD Connect tool

 Azure AD is a service that provides identity and access management capabilities in the cloud. ...

Read More >

Creating a Point-to-Site Connectivity using Azure Resource Manager

Configure a Point-to-Site connectivity to a VNet using PowerShell (ARM Mode)Task 1: Create a Self-Si...

Read More >

How to Create an Azure Virtual Network by using a Deployment Template

Hello Folks!In this Blog post, we will try to learn how to create an Azure V-Net using an ARM templa...

Read More >

Locking VMs and Resources Groups with Azure Resource Manager using Azure PowerShell

Hello Folks!In this blog post we will be talking about locking down your Azure Resources with Azure ...

Read More >

Microsoft Azure: Implementing Internet Facing Load Balancers using Azure Resource Manager

Howdy Folks!I was exploring Network Load Balancer in Azure Resource Manager and found out that you c...

Read More >

Microsoft Azure Stack : Power of Azure in our datacentre

Why Azure Stack?Microsoft Azure Stack is a new hybrid cloud platform product that enables our organi...

Read More >

Microsoft Azure : Mobile Services - Xamarian.Android with .Net

NOTE: Microsoft Azure recommends Azure App Service Mobile Apps for all new mobile backend deployment...

Read More >

Microsoft Azure : The cloud for modern business

 Why Azure? Microsoft Azure: Cloud Computing Platform and Services Move faster Save Money ...

Read More >

Share

Post a Comment

  • Recent
  • Popular
  • Tag
Monthly Archive
Subscribe
Name

Contact Us
  • *
  • *