2
votes

I am trying to use Azure DevOps pipelines to build a .NET 5 (Core) web app and deploy it to my Azure app service. I can't find any complete examples in the documentation that achieve this so I'm following this:

https://github.com/shahedc/NetLearnerApp/blob/main/azure-pipelines.yml.txt

However, the Azure deploy task keeps returning this vague error: enter image description here

In my Azure portal I only get this error: enter image description here

I am assuming the issue is in my pipeline because deployment works when I deploy it directly from the Deployment Center in the Azure portal. Here are the details for the 3 relevant tasks my pipeline:

enter image description here enter image description here enter image description here

1
In "package or folder" give the full zip (your artifact name ) instead of wild card.Rahul Shukla
Are there any ip restrictions on the app service?blockingHD
@blockingHD Nopeglen4096

1 Answers

4
votes

I found the solution. It turns out the issue was not in the pipeline, but was caused by a Git connection to the app service I had previously set up in the Azure Deployment Center. Even though I disconnected/removed this Git connection, there was somehow still a residual file left over in Azure that was causing the error. I deleted the 'deployments' folder in Kudu (pictured below) and the pipeline started working as expected.

enter image description here