Creating A Release Definition In VSO

Step 1

Open VSO, go to Builds and Releases

 
Step 2 

Click on Release Tab 

 

 
 
Step 3 


Inside that click on the Plus Icon and then select Create release definition to add a New Release Definition

 

Step 4

A new menu will appear

Agile Development

 

Artifact Section is to add the Build for which we want to create the release definition 

Steps to Add Artifact:

  1. Click on Add artifact (as shown in the above Screenshot)
  2. Select the Source Type
  3. Select the Project where our Build definition Exists
  4. Select the source Build Definition
  5. Click on Add

Add Environment Section is to set up the environment where our web application will be deployed.

  • Click on Add environment (as shown in the above Screenshot)
  • Select a template based on what type of Application we want to deploy and where we want to deploy it.  In our case it will be Azure App Service Deployment. Select that and click on Apply.
    Agile Development

  • Give an appropriate name to the environment in the TextBox Provided
    Agile Development

  • Click on 1 phase, 1 task link as shown in the screenshot below,

    Agile Development

  • A new Screen will appear (similar to the one shown in the below screen shot),
    Agile Development

Select any version from the dropdown provided

Set Connection Type as Azure Resource Manager

Give a suitable display name if required.

To configure this Azure App Service Deployment we need to Configure Azure Resource Manager Service Endpoints.

To do so click on Manage link

Agile Development

 

It will take you to a new screen to set up Service Endpoints

Open VSO , go to Settings Icon and Select Services

 
 
Click on New Service Endpoint in the top-right corner

Agile Development

Select Azure Resource manager from the dropdown.

Provide appropriate details in the fields provided and click on OK.

Note
Only the owner of the Azure Subscription can create an Azure Resource Manager Service Endpoint.

Once the endpoint is created go to Step 5 and provide the  rest of the details related to Azure Subscription and Service.

Agile Development

Provide the App Service URL and save the release definition.