0

We are not used to Linux function apps on Azure but this time we need to run the code on a Linux OS.

I have noticed that there is no "Always on" option on configuration, unlike windows functions where you can turn this option on to prevent inactivity (idle). We also face an issue where our Linux function triggers but the execution stops suddenly sometimes and leaves no log.

Can the Linux function app go into an idle mode? Or at least some other services related to the function?

Some images to illustrate the question :

(linux) enter image description here

(windows) enter image description here

Notice the the "Prevent your app from bein idled out due to inactivity"

Thank you

BorisD
  • 1,611
  • 17
  • 22
  • 1
    Which plan type are you using with your linux functions? "Always On" is independent of the OS. It is an option you will only see on an app service plan: https://learn.microsoft.com/en-us/azure/azure-functions/dedicated-plan#always-on – Manuel Batsching Jul 27 '21 at 13:34
  • Thank you @ManuelBatsching we use an App Service plan, and it's not available. – BorisD Jul 27 '21 at 15:10
  • Even with Always On enabled, the execution timeout for individual functions is controlled by the functionTimeout setting in the host.json project file. https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout – Madhuraj Vadde Aug 05 '21 at 13:28
  • @MadhurajVadde-MT that time out its here to define de maximum time a function will run. Not at what time the function runs... And my question is about always-on that prevents the function from bein in sleep mode if its not executed for a long time. – BorisD Aug 05 '21 at 13:48
  • What is the App Service plan for the Function ? – Madhuraj Vadde Aug 05 '21 at 14:01
  • Azure Portal -> App Service Plans -> Select your app Service plan ->Select the app (from Apps under Settings) -> In App blade, click configuration (under settings section) -> switch to General Settings Tab. You should be seeing option of Always ON – Madhuraj Vadde Aug 05 '21 at 14:07
  • Please read my question @MadhurajVadde-MT It is not available for a Linux function – BorisD Aug 05 '21 at 14:19
  • I just created a Function app with OS = "Linux" and Plan Type = "App Service Plan". I followed the above steps and I can see "General Settings" tab along with "Application Settings" and "Function runtime Settings". So suggesting the same – Madhuraj Vadde Aug 05 '21 at 14:30
  • Yes, but do you see Always-on? @MadhurajVadde-MT It's the main purpose of my question – BorisD Aug 05 '21 at 14:33
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/235660/discussion-between-madhurajvadde-mt-and-borisd). – Madhuraj Vadde Aug 05 '21 at 14:39

1 Answers1

2

Change the App Service plan to higher (probably P1v2)

Madhuraj Vadde
  • 1,099
  • 1
  • 5
  • 13