DomBurf DomBurf - 7 days ago 6
ASP.NET (C#) Question

Azure deployment not finding any files to deploy

I have configured two on-premises deployments of our ASP.NET Web API services. One to our staging server and one to our production server. Both are deployed without any problems.

I've recently begun investigating how to deploy these services to Azure as we'd like to make more use of cloud services going forwards. So I've setup a deployment to the Azure account I created as in the screenshot.

enter image description here

It connects to the Azure account but then fails stating that it cannot find any files to deploy as in the screenshot below.

enter image description here

When I look in the folder the files are definitely there. They are the same files that were deployed to the staging and production endpoints.

I can't understand why the Azure deployment fails to find these files, yet our on-premises deployments do.

Answer

I could deploy web app to Azure app service on my side, here is the detailed steps, you could refer to it.

Build definition

enter image description here

NuGet Installer

enter image description here

Visual Studio Build

enter image description here

Note : you could find PackageLocation ($(build.artifactstagingdirectory)) from MSBuild Arguments

Azure App Service Deploy

enter image description here

Note: specify Package or Folder based on the value of PackageLocation you find from MSBuild Arguments