I created an Azure function tonight in Visual Studio and had errors publishing it. So I created a vanilla HTTP triggered one, and tried to publish it, no code changes. Same errors. I am logged in to my Azure account, I've downloaded a publish profile, and reset it and tried again. I've done it by selecting the function app in the IDE. I've tried figuring out how to FTP the function app, but I pushed files up and nothing appeared in the portal (I copied the build folder into the wwwroot folder on the server). In FTP, I can see in the deployment folder some files are there, that denote that an attempted deployment failed, so it's talking to Azure, and deciding it hasn't worked.
The error log is not very helpful:
30/05/2019 8:46:11 PM System.AggregateException: One or more errors occurred. ---> System.Exception: Publishing failed. --- 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.Publish.Framework.Model.DefaultPublishSteps.<>c__DisplayClass26_0.b__2() 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.Model.DefaultPublishSteps.d__23.MoveNext() --- 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__176.MoveNext() ---> (Inner Exception #0) System.Exception: Publishing failed.<---
===================
I'd be quite happy to do it via FTP if there was a guide on what to put where.