Skip to content

Commit 5bfe68c

Browse files
committed
Add v2 compat mode
1 parent 803263d commit 5bfe68c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

articles/azure-functions/durable/quickstart-js-vscode.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ Visual Studio Code installs the Azure Functions Core Tools, if needed. It also c
5757

5858
A package.json file is also created in the root folder.
5959

60+
### Enable Azure Functions V2 compatibility mode
61+
62+
Currently, JavaScript Durable Functions require Azure Functions V2 compatability mode to be enabled.
63+
64+
1. Open *local.settings.json* to edit the settings used when running the app locally.
65+
66+
1. Add a setting named `FUNCTIONS_V2_COMPATIBILITY_MODE` with a value of `true`.
67+
6068
## Install the Durable Functions npm package
6169

6270
To work with Durable Functions in a Node.js function app, you use a library called `durable-functions`.
@@ -167,6 +175,20 @@ After you've verified that the function runs correctly on your local computer, i
167175

168176
[!INCLUDE [functions-publish-project-vscode](../../../includes/functions-publish-project-vscode.md)]
169177

178+
### Enable Azure Functions V2 compatibility mode
179+
180+
The same Azure Functions V2 compatability that you enabled locally needs to be enabled in the app in Azure.
181+
182+
1. Using the command palette, search for and select `Azure Functions: Edit Setting...`.
183+
184+
1. Follow the prompts to locate your function app in your Azure subscription.
185+
186+
1. Select `Create new App Setting...`.
187+
188+
1. Enter a new setting key of `FUNCTIONS_V2_COMPATIBILITY_MODE`.
189+
190+
1. Enter a setting value of `true`.
191+
170192
## Test your function in Azure
171193

172194
1. Copy the URL of the HTTP trigger from the **Output** panel. The URL that calls your HTTP-triggered function should be in this format: `http://<functionappname>.azurewebsites.net/orchestrators/HelloOrchestrator`

0 commit comments

Comments
 (0)