azure-functions-runtime

Why is my python timer trigger function not running at the correct time?

主宰稳场 提交于 2021-02-16 18:08:16
问题 this is probably a noob question. I have an Azure Function that responds to HTTP requests and it works fine, I can call it from a browser or from a Python 3.8 script. I want to make another function that will have Timer Trigger and will call the HTTP trigger function on a schedule. HTTP Trigger function returns a simple string with execution results. Now my code for Timer trigger function is using Python Requests and it works locally every time, but will work only 1/10 times when deployed to

Why is my python timer trigger function not running at the correct time?

妖精的绣舞 提交于 2021-02-16 18:07:16
问题 this is probably a noob question. I have an Azure Function that responds to HTTP requests and it works fine, I can call it from a browser or from a Python 3.8 script. I want to make another function that will have Timer Trigger and will call the HTTP trigger function on a schedule. HTTP Trigger function returns a simple string with execution results. Now my code for Timer trigger function is using Python Requests and it works locally every time, but will work only 1/10 times when deployed to

Where can exceptions raised within FunctionsStartup.Configure be found logged on Azure?

三世轮回 提交于 2021-02-11 14:21:46
问题 In the following code, where is the error logged in Azure? Sometimes the cause of such an error is difficult to identify, and results in "Function host is not running.", I've not been able to find the logged exception. I've worked around this before by writing my own try/catch logging to BlobStorage myself, however, I'd hope there's a more idiomatic way of obtaining the exception. public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder builder) { throw

Is there a way to see when the Azure Functions Runtime was updated?

佐手、 提交于 2021-01-28 21:59:51
问题 We started seeing some new errors in one of our functions in relation to a DryIoc accessing a disposed Singleton object. There are several posts suggesting to set the FUNCTIONS_WORKER_RUNTIME to a specific version. I can see in the Azure Portal that our runtime is currently set 2.0.13759.0 which was released on June 1, 2020. There have been a few more releases since that time, which leads me to my question. I'm not necessarily saying it is the cause of our issue, but how can I tell when a

Azure Function: Old code still running after a deployment

為{幸葍}努か 提交于 2021-01-28 03:09:14
问题 Right now I again faced the issue that old code is used on an Azure Function App even after the zip deployment through KUDU returns success. Of course, that is after some 30 mins that I expect the new code to get loaded, not immediately. The issue is marked as closed. What is considered to be the best practice in this case: Programmatically force the Function App to restart, say, through Azure CLI or Powershell Az modules? Or there is another way to mitigate the issue? 回答1: While restarting

Is there a way to see when the Azure Functions Runtime was updated in Linux?

可紊 提交于 2021-01-07 06:57:45
问题 For an Azure Function, how can I tell when an Azure App Service Plan's FUNCTION_EXTENSION_VERSION was updated on a Linux server? Note this is in relation to the same exact question answered for Windows. 回答1: For an Azure Function, how can I tell when an Azure App Service Plan's FUNCTION_EXTENSION_VERSION was updated on a Linux server? Linux azure function is different from windows azure function. Their design methods are different. I first tried to use ftp and connected to the physical path

Azure Functions - Configure client certificate authentication

﹥>﹥吖頭↗ 提交于 2020-12-01 07:26:05
问题 Do functions support authorizing access to a Function by using client certificates, in a consumption plan ? Something similar to the approach described here? Basically, I'm looking for the Functions runtime to immediately reject connection requests if the caller does not present a valid client certificate, without me having to implement that authorization routine in the code. 回答1: Based on your requirement, I created my C# HttpTrigger function to check this issue, here is the core code: if

Understanding of Azure Functions Premium Plan Billing

旧时模样 提交于 2020-07-19 06:06:51
问题 I've been reading various documentation around this and was not able to clearly confirm my understanding, we are evaluating Azure Functions Premium Plan and want to have a clearer understanding on the costs. My understanding is as follows: In a Premium Plan, we can configure the minimum instances, and the burst size. This is min and max size of a reserved pool of Premium Plan instances (say it's SKU EP2). Let's say I set minimum instances to 3, burst size to 10. The configured minimum (in