Followers

Azure Release Pipeline with WebApp

Azure Release Pipeline with WebApp   1. Create a web app using App services. 2. Create an Azure DevOps Repo for.NET core project and Create ...

Azure Release Pipeline with WebApp 

1. Create a web app using App services.

2. Create an Azure DevOps Repo for.NET core project and Create a pipeline and in the pipeline using Assistant select the publish 

# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
master

pool:
  vmImage'windows-latest'

variables:
  solution'**/*.sln'
  buildPlatform'Any CPU'
  buildConfiguration'Release'

steps:
taskNuGetToolInstaller@1

taskNuGetCommand@2
  inputs:
    restoreSolution'$(solution)'

taskVSBuild@1
  inputs:
    solution'$(solution)'
    msbuildArgs'/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
    platform'$(buildPlatform)'
    configuration'$(buildConfiguration)'
taskPublishBuildArtifacts@1
  inputs:
    PathtoPublish'$(Build.ArtifactStagingDirectory)'
    ArtifactName'drop'
    publishLocation'Container'

3. To make sure the pipeline is created successfully, save and run the application as a pipeline job and once the execution is completed you will find that there is an artifact ( build artifact) created with a name drop ( you can expand it and find all the files related to the artifacts).

4. Select the Pipelines-->Releases option and Click on New Pipeline button.

5. In the template option select Azure app service Deployment. Click on Apply button.

6. Once you come back to the Release pipeline screen then Click on the +Add Artifacts button and select the build Artifacts.



7. Select the job and task link and click on it and provide the Task information and shown below.



8. Click on the Save button and then click on Create Release button and provide the information about the release similar as shown below.



9. Click on Create button to create the release pipeline and click on the Release link and it will show the Release process.


10. Click on Deploy to deploy the app on the web app service. Once the deployment is done then go to the web app URL and you will be able to see the application output on browser.

11. You can check the logs of the pipeline by using.


Continuous Deployment

Select the Release pipeline and Click on Edit.

Click on the trigger and enable the Continuous deployment trigger.



Now change the code in Azure Repos and check on Web app url that changes are reflected automatically.


Parallel Stages

Select the Release Pipeline and Click on Edit Button.

Click on the +Add button and select App service for deployment option and click on apply and provide the stage Name which you want to create in parallel deployment.



Sequential Stages

Select the Stage and under that, there is a +Add button click on that for the sequential Stage.



and select the stage-related application template and follow the same steps as mentioned in the released pipeline to deploy it on WebApp.

Approval and Gates.

Release Pipeline with Approval (Continuous Delivery)

When you deploy the stage of a release pipeline you want that there must be an approval required before the build code move to an environment like prod.



COMMENTS

BLOGGER: 3
  1. This comment has been removed by the author.

    ReplyDelete
  2. Thank you for sharing such useful information about Food and Travel Guides. I value and respect your opinion. You can also Checkout our amazing services of ASP.Net Development Services.

    ReplyDelete
  3. Thanks for sharing this content, Very informative blog. The best erp for manufacturing industries.

    ReplyDelete

Name

Ansible,6,AWS,1,Azure DevOps,1,Containerization with docker,2,DevOps,2,Docker Quiz,1,Docker Swarm,1,DockerCompose,1,ELK,2,git,2,git quiz,1,Git Worksheet,1,ITIL,1,ITSM,1,Jira,3,Kubernetes,1,Kubernetes Quiz,5,SAST DAST Security Testing,1,SDLC Quiz,5,SonarQube,3,Splunk,2,vagrant kubernetes,1,Windows,1,YAML Basics,1,
ltr
item
DevOpsWorld: Azure Release Pipeline with WebApp
Azure Release Pipeline with WebApp
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6TdYL7Mg6jszbDlYXNlKwHa8hoKIxPbycBB4IKOTN7aITsgCSOA05sYzkRhculIGtzJc3A1Db7kajB3Twe9d5EhgOlWVUY8te-Uy8EbEy6hw8WVFzzDc8JteVpiZeKIAt5Q16DvUPBlxayE0fyCyihAjxBSEpjgJgCdqXCKrnYVEDEiqKCOvC7ou6/s320/ImportAzureRepos-2.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6TdYL7Mg6jszbDlYXNlKwHa8hoKIxPbycBB4IKOTN7aITsgCSOA05sYzkRhculIGtzJc3A1Db7kajB3Twe9d5EhgOlWVUY8te-Uy8EbEy6hw8WVFzzDc8JteVpiZeKIAt5Q16DvUPBlxayE0fyCyihAjxBSEpjgJgCdqXCKrnYVEDEiqKCOvC7ou6/s72-c/ImportAzureRepos-2.jpg
DevOpsWorld
https://www.devopsworld.co.in/2022/06/azure-release-pipeline-with-webapp.html
https://www.devopsworld.co.in/
https://www.devopsworld.co.in/
https://www.devopsworld.co.in/2022/06/azure-release-pipeline-with-webapp.html
true
5997357714110665304
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content