CD Classic pipeline for Web Application - Deployed at Azure

Step 1: Create Service Connection with Azure Cloud  (Create AD, Service Principal)

 

Step 2: Build Pipeline by created CI Pipeline

 

Step 3: Web App for deployment

  • it's a managed service by Microsoft, which we will go and create and we will get our application deployed on top of it.

 

Step 4: Create Web App from .Net Application at Azure Cloud

OR 

 

 

 

Step 5: Create Deploy (CD) pipeline

DevOps >  pipeline > releases > click New Pipeline

 

A. Create State / Environment

By default a pop will open with available Templates. Do do any thing this window. 

just click Empty Job link to make space for creating stage

  • Specify Stage name as Dev and Owner of that stage
  • Close the pop up window

 

You can see a stage is created on parent window

 

 

B. Create Artifact

  • Artifact is basically it is asking you where the source is. 
  • Open Add an Artifact Window with 2 Options
  • Select source type as Build- 
    • Our release pipeline will work if build pipeline succeeded
      • The version default is set to latest. That means whatever is the latest build that will get deployed. If you want to be very specific with some specific version, you can do that also over here. Okay, but for me, I'll stick with the latest one.
      • Select source build pipeline whose completion this release pipeline will start
    • Click Add Button
  • Leave rest 3 Tabs as it is
  • Pop up window will close

 

 

At Parent window give name to you pipeline at top

 


 

Step 6: Add Job / Task under your stage - Add Azure App Services to deploy at

  • Click Jobs and Task link inside your State window

 

Open will add new Task pop up window

Lets add one task form available templates

  • search ‘app ser’ in filter drop down
  • Select this task and click Add
  • This will add new Task on left Panel
  • click on newly added task and specify information in settings on right side
      • App Service name- web app created in Azure cloud above
      • close the pop up window

 

 

 

Step 7: Deploy this artifact on Azure VM Using Classic CD Pipeline

  • Click Create Release
    • Create Create

 

 

Step 8: Result Show

 

Click on Release-1 to we can see that Dev Pipline is started

 

 

After some time Dev is succeeded

 

Step 9: Click Dev > Deployed Successfully

 

Step 10:  Check your Running Web App at Url of Web App

 

Step 11:  Web App is running successfully

 


Related Question