Skip to content

Commit 70e532a

Browse files
authored
Merge pull request #100324 from ggailey777/patch-3
Document the FUNCTIONS_V2_COMPATIBILITY_MODE setting
2 parents 42e7c30 + 7ebebe2 commit 70e532a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

articles/azure-functions/functions-app-settings.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,19 @@ The version of the Functions runtime to use in this function app. A tilde with m
104104
|---|------------|
105105
|FUNCTIONS\_EXTENSION\_VERSION|~2|
106106

107+
## FUNCTIONS\_V2\_COMPATIBILITY\_MODE
108+
109+
This setting enables your function app to run in a version 2.x compatible mode on the version 3.x runtime. Use this setting only if encountering issues when [upgrading your function app from version 2.x to 3.x of the runtime](functions-versions.md#migrating-from-2x-to-3x).
110+
111+
>[!IMPORTANT]
112+
> This setting is intended only as a short-term workaround while you update your app to run correctly on version 3.x. This setting is supported as long as the [2.x runtime is supported](functions-versions.md). If you encounter issues that prevent your app from running on version 3.x without using this setting, please [report your issue](https://github.com/Azure/azure-functions-host/issues/new?template=Bug_report.md).
113+
114+
Requires that [FUNCTIONS\_EXTENSION\_VERSION](functions-app-settings.md#functions_extension_version) be set to `~3`.
115+
116+
|Key|Sample value|
117+
|---|------------|
118+
|FUNCTIONS\_V2\_COMPATIBILITY\_MODE|true|
119+
107120
## FUNCTIONS\_WORKER\_PROCESS\_COUNT
108121

109122
Specifies the maximum number of language worker processes, with a default value of `1`. The maximum value allowed is `10`. Function invocations are evenly distributed among language worker processes. Language worker processes are spawned every 10 seconds until the count set by FUNCTIONS\_WORKER\_PROCESS\_COUNT is reached. Using multiple language worker processes is not the same as [scaling](functions-scale.md). Consider using this setting when your workload has a mix of CPU-bound and I/O-bound invocations. This setting applies to all non-.NET languages.

0 commit comments

Comments
 (0)