Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure function created with always on = off #3037

Closed
ihorbond opened this issue Jan 16, 2022 · 6 comments · Fixed by #3422
Closed

Azure function created with always on = off #3037

ihorbond opened this issue Jan 16, 2022 · 6 comments · Fixed by #3422
Assignees
Milestone

Comments

@ihorbond
Copy link

  • VS Code Version: latest
  • Azure Account Extension Version:
  • OS Version: win 10

Steps to Reproduce:

  1. Create an azure function via VS Code extension.
  2. Deploy.
  3. Login into Azure Portal and find the created function.
  4. Go to Configuration -> General Settings.

Result: Always on = off
image

@ihorbond ihorbond changed the title Created azure function created with always on = off Azure function created with always on = off Jan 16, 2022
@wwlorey
Copy link
Contributor

wwlorey commented Jan 18, 2022

Hi @ihorbond, thanks for filing an issue.

Please elaborate as to what problem you're running into and provide steps to reproduce it.

@ihorbond
Copy link
Author

@wwlorey just added the steps. sorry was in a rush. maybe this bug is purely presentational but I noticed when you crate an Azure function via Azure Portal UI always on defaults to On vs function created via vscode ext it defaults to Off

@wwlorey
Copy link
Contributor

wwlorey commented Jan 20, 2022

Thanks for providing these details @ihorbond. Transferring this to the Azure Functions Extension repo to better address the issue.

@wwlorey wwlorey transferred this issue from microsoft/vscode-azure-account Jan 20, 2022
@wwlorey
Copy link
Contributor

wwlorey commented Jan 20, 2022

More context on this:

From https://docs.microsoft.com/en-us/azure/app-service/configure-common?tabs=portal#configure-general-settings:

Always On: Keeps the app loaded even when there's no traffic. When Always On is not turned on (default), the app is unloaded after 20 minutes without any incoming requests. The unloaded app can cause high latency for new requests because of its warm-up time. When Always On is turned on, the front-end load balancer sends a GET request to the application root every five minutes. The continuous ping prevents the app from being unloaded.
Always On is required for continuous WebJobs or for WebJobs that are triggered using a CRON expression.

@wwlorey wwlorey added this to the 1.7.0 milestone Jan 20, 2022
@ejizba
Copy link
Contributor

ejizba commented Jan 21, 2022

Fyi @wwlorey I think this is only for app service plans (not consumption or premium) https://docs.microsoft.com/en-us/azure/azure-functions/dedicated-plan#always-on

@ihorbond can you confirm you chose a dedicated app service plan?

@ihorbond
Copy link
Author

Yes, I did have an app service selected and it is HTTP triggered. so that means it should be off by default then and will wake on HTTP request and will take a some time to warm up correct ?

@alexweininger alexweininger modified the milestones: 1.7.0, 1.8.0 Jun 9, 2022
@nturinski nturinski modified the milestones: 1.8.0, 1.9.0 Sep 21, 2022
@motm32 motm32 self-assigned this Nov 8, 2022
@microsoft microsoft locked and limited conversation to collaborators Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants