0
votes

I have the following:-

  • I create a new Azure web app.

  • Using VS 2019 i created a new Asp.net 4.5 web application which contain WCF service.

  • i tried to deploy my asp.net application into azure using Visual Studio, but i failed.

    • I tried using Web Deploy:-

enter image description here

  • I tried using ftp:-

enter image description here

but both approaches failed, where i got connection error. as follow:-

enter image description here

System.AggregateException: One or more errors occurred. ---> System.Exception: Build failed. Check the Output window for more details. --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Microsoft.WebTools.Publish.PublishService.VsWebProjectPublish.c_DisplayClass43_0.b3() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.d_213.MoveNext() ---> (Inner Exception #0) System.Exception: Build failed. Check the Output window for more details.<---

System.Exception: Build failed. Check the Output window for more details.

so my question if i can manually deploy my asp.net web application to azure web app without relying on VS? for example using power-shell or from azure portal?

1

1 Answers

1
votes

Yes, you can.

Here's one way using Azure CLI:

az webapp deployment source config-zip --resource-group myResourceGroup --name <app_name> --src <filename>.zip

You can also access Kudu portal (https://your-web-app.scm.azurewebsites.net) and upload the zip file:

https://docs.microsoft.com/en-us/archive/blogs/benjaminperkins/deploy-to-an-azure-app-service-using-kudu-and-a-zip-file