Azure DevOps CICD with NET framework web app

0 votes

We have a git repo on Azure DevOps where we are developing a web app using .NET framework 4.6.1 It's a small web API that uses Swagger and runs fine locally with IIS express. We have set up an App Service on Azure to host the website and it works fine to publish from Visual Studio and it works like a charm.

Now, we want to set up proper Continuous Integration (CICD) pipelines using Azure DevOps so that it all builds and publishes on auto.

We have created a pipeline for the Dev branch of the repo with the following Agent job:

  1. Use NuGet 4.4.1
  2. NuGet restore
  3. Build solution (msbuild arguments below)

/p:DeployOnBuild=true /p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem /p:DeleteExistingFiles=True /p:publishUrl="$(System.DefaultWorkingDirectory)\WebAppContent"

  1. Archive (root folder to archive below)

$(System.DefaultWorkingDirectory)\WebAppContent

  1. Publish symbols path
  2. Publish artifact

And it works well. All is built, archived into a ZIP, and published as an artifact (or so it seems!)

We have then set up a release pipeline that triggers when a new build is available. The agent is connected with the subscription and to the hosting service. (we have other .NET Core applications that deploy fine).

The agent is as follows:

  1. Azure Web App Deploy - using Azure Web App (Package or folder)

$(System.DefaultWorkingDirectory)/**/*.zip

We have no errors! All seems good but there are no changes on the hosting website on Azure. It's like the website is published at the wrong place on it since we receive a warning that the page doesn't exist when we try to access it.

We've tried different solutions with ZIP deploy/Autodetect/Run from package and using Azure App Service Deploy.

What have we missed?

Mar 26, 2022 in Other DevOps Questions by Kichu
• 19,050 points
1,683 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
0 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,520 views
–1 vote
0 answers
0 votes
1 answer

Azure DevOps - Github status checks

To use the GitHub Status check, first ...READ MORE

answered Mar 25, 2022 in Azure by Edureka
• 13,620 points
779 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP