Skip to content

Commit 0d4d475

Browse files
committed
FIxed customer provided content
1 parent 4ef387a commit 0d4d475

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

articles/azure-functions/functions-bindings-warmup.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ This article explains how to work with the warmup trigger in Azure Functions. A
1717

1818
The following considerations apply when using a warmup trigger:
1919

20+
* There can be only one warmup trigger function per function app, and it can't be invoked after the instance is already running.
21+
* The name of the function that is the warmup trigger for your app should be `warmup` (case-insensitive).
2022
* The warmup trigger isn't available to apps running on the [Consumption plan](./consumption-plan.md).
2123
* The warmup trigger isn't supported on version 1.x of the Functions runtime.
2224
* Support for the warmup trigger is provided by default in all development environments. You don't have to manually install the package or register the extension.
23-
* There can be only one warmup trigger function per function app, and it can't be invoked after the instance is already running.
2425
* The warmup trigger is only called during scale-out operations, not during restarts or other nonscaling startups. Make sure your logic can load all required dependencies without relying on the warmup trigger. Lazy loading is a good pattern to achieve this goal.
2526
* Dependencies created by warmup trigger should be shared with other functions in your app. To learn more, see [Static clients](manage-connections.md#static-clients).
2627
* If the [built-in authentication](../app-service/overview-authentication-authorization.md) (also known as Easy Auth) is used, [HTTPS Only](../app-service/configure-ssl-bindings.md#enforce-https) should be enabled for the warmup trigger to get invoked.
27-
* [Where applicable](https://github.com/Azure/azure-functions-host/blob/bc21cd69782312508f95d85d60863b8881de2c11/src/WebJobs.Script/Host/ScriptJobHostExtensions.cs#L36)
28-
* the function must be named `Warmup` (case-insensitive) in order to be picked up by the host.
29-
* the function-trigger must be named `WarmupTrigger` (case-insensitive) in order to be picked up by the host.
3028

3129
## Example
3230

@@ -130,7 +128,7 @@ module.exports = async function (warmupContext, context) {
130128

131129
The following example shows a [TypeScript function](functions-reference-node.md) with a warmup trigger that runs on each new instance when added to your app:
132130

133-
:::code language="typescript" source="~/azure-functions-nodejs-v4/ts/src/functions/warmupTrigger.ts" :::
131+
:::code language="typescript" source="~/azure-functions-nodejs-v4/ts/src/functions/warmupTrigger1.ts" :::
134132

135133
# [Model v3](#tab/nodejs-v3)
136134
TypeScript samples aren't documented for model v3.

0 commit comments

Comments
 (0)