My python file is in Azure devops repository. I am trying to deploy it to the azure function app and execute the py file. I already building up an service connection "testing" to connect the resource group. My code is following.
steps:
However, i encounter error ##[error]Error: Failed to sync triggers for function app 'api'. Error: BadRequest - Encountered an error (ServiceUnavailable) from host runtime. (CODE: 400)
This might help: https://github.com/Azure/azure-functions-host/issues/5722
I had the same issue and removing WEBSITE_RUN_FROM_PACKAGE from siteConfig.appSettings fixed the issue.
As a follow-up to Balint's answer, I had something similar happen which started causing this same problem. In my case I'm using keyvault secrets in my configuration to load some keys, and this failed until I refreshed my config.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With