In yml file replace
- pipe: microsoft/azure-web-apps-deploy:1.0.3
with
- pipe: atlassian/azure-functions-deploy:2.0.0
Update (it fails again)
It started to fail again. Now not only can't I deploy kafka triggers, bit ordinary iothub and timer one.
It neither work with atlassian nor microsoft pipeline (microsoft/azure-functions-deploy:1.0.2)
It seems to me that it is something relating to deploy of triggers itself. Even deploying from VS2022 fails sometimes:
Publish has encountered an error. The Publish URL
https://mytriggerdevtimeraf.scm.azurewebsites.net/ is unreachable. The
application may be stopped, restarting or unavailable. Try again once
the publish target is available.
A diagnostic log has been written to the following location:
"C:\Users\USERNAMR\AppData\Local\Temp\tmpA81B.tmp"
go to log:
8/31/2022 1:13:39 PM
Microsoft.WebTools.Shared.Exceptions.WebToolsException: The Publish
URL https://mytriggerdevtimeraf.scm.azurewebsites.net/ is unreachable.
The application may be stopped, restarting or unavailable. Try again
once the publish target is available. at
Microsoft.WebTools.Azure.Functions.Publish.ZipDeployPublishProfileConfiguration.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.Publish.Framework.Nexus.PublishProfilesServiceImpl.ServerProjectProfilesManager.d__62.MoveNext()
===================
Stopping triggers before deployment doesn't help
I have 4 trigger and only one is deployed.
To detect error I go to the portal click trigger and see the error:
System.Private.CoreLib: Could not load file or assembly
'D:\home\site\wwwroot./.azurefunctions/Microsoft.Azure.WebJobs.Extensions.FunctionMetadataLoader.dll'.
Format of the executable (.exe) or library (.dll) is invalid
function.json
files. – Parfaitaz functionapp deployment
command after enabling thescm_do_build_during_deployment
totrue
. Zipping is 1) through right click menu on project folder > Compress to Zip file 2) through powershell command as shown here - i.imgur.com/C6uwNGE.png – Parfait