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
Artifact Section is to add the Build for which we want to create the release definition
Steps to Add Artifact:
- Click on Add artifact (as shown in the above Screenshot)
- Select the Source Type
- Select the Project where our Build definition Exists
- Select the source Build Definition
- 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.
- Give an appropriate name to the environment in the TextBox Provided
- Click on 1 phase, 1 task link as shown in the screenshot below,
- A new Screen will appear (similar to the one shown in the below screen shot),
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
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
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.
Provide the App Service URL and save the release definition.