Introduction
The CI/CD (Continuous Integration/Continuous Deployment) is a star of the modern devops environment. It allows you to automate the building, testing, and deployment of applications. With Continuous Integration (CI), systems will trigger the build source and run test suites on each change or code checked in. If the build is passed at all the stages, it automatically deploys to multiple stages such as staging or production environments using a release pipeline. It is referred to as Continuous Delivery (CD). You can add multiple stages of software package validation.
In my previous article, I explained about creating the build pipeline and downloading the build artifact for Angular apps. The process of creating the build pipeline is nearly the same for all technologies but the tasks are different. In this article, I will explain how to create a release pipeline and host Angular applications on Azure.
Prerequisites
- You must have an account for Azure Devops account and Azure Portal
- Repo and required branches must be set up
- Build pipeline must be created (Refer to my previous article to create build pipeline)
Create App Service on Azure portal
Firstly, you need to create Azure App Service as Angular app is deployed on Azure app service by release pipeline. Following are the steps to create Azure App service.
Step 1
Login to Azure Portal
Step 2
Select “Create a Resource” >> “App Services” from the left panel and click on “+Add” button from right panel. Alternatively, you can click on “Create app service” button.

Step 3
Fill in the required information to create the web app.
You need the following info to create a web app
- Subscription: select the subscription that you want to use to create app service
- Resource Group: Use existing resource group or create new resource group
- Name: Unique name of app service. You can browse your application using {appname}.azurewebsites.net
- Publish: select publish type either code or docker container
- Runtime Stack: select the technology stack. Angular app can be run on Node.js, so I have selected “Node 12 LST”
- Operating System: OS that use to host application. You can select either Windows or Linux.
- Region: select region in which you want to host app service
- App Service plan: select app service plan as per your requirement

After filling in all the required information, click on “Review + create” button. It shows you the summary of option selected. Then click on “Create” button to create web app (app service).

Azure deploys your app service and provides you with a notification once it is deployed. After deployment, you can also edit some options.

To view / edit your app service, click on “All resources” and select your app service. The overview section contains details such as subscription, URL, FTP details, etc. The URL is used to access your deployed Angular app.

Currently, no application is hosted on app service so, it shows default home page of Azure platform.

Create Release Pipeline
To create new release pipeline, click on Pipelines >> Releases and select "New release pipeline".















Hamid KhanPosted Sep 4, 2020, 1:40 AM
Very Good explanation Jignesh Trivedi