Skip to content

Commit 164f2f7

Browse files
committed
add note about the EnableWorkerIndexing flag
1 parent 3d94ac1 commit 164f2f7

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,17 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
192192

193193
## Test the function locally
194194

195+
::: zone pivot="nodejs-model-v4"
196+
197+
> [!NOTE]
198+
> To run the V4 programming model, your app needs to have the `EnableWorkerIndexing` feature flag set. When running locally, this should have already been set in your `local.settings.json` file when creating your project. To verify, check the following line exists in your `local.settings.json` file. If it doesn't, add it to your file.
199+
>
200+
> ```json
201+
> "AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
202+
> ```
203+
204+
::: zone-end
205+
195206
Azure Functions Core Tools lets you run an Azure Functions project on your local development computer. You're prompted to install these tools the first time you start a function from Visual Studio Code.
196207
197208
::: zone pivot="nodejs-model-v3"
@@ -280,6 +291,18 @@ After you've verified that the function runs correctly on your local computer, i
280291
281292
[!INCLUDE [functions-publish-project-vscode](../../../includes/functions-publish-project-vscode.md)]
282293
294+
:: zone pivot="nodejs-model-v4"
295+
296+
## Update app settings
297+
298+
To enable your V4 programming model app to run in Azure, you need to add the `EnableWorkerIndexing` flag under the `AzureWebJobsFeatureFlags` app setting.
299+
300+
1. In Visual Studio Code, press **F1** to open the command palette. In the command palette, search for and select `Azure Functions: Add New Setting...`.
301+
2. Choose your new function app, type `AzureWebJobsFeatureFlags` for the new app setting name, and press **Enter**.
302+
3. For the value, type `EnableWorkerIndexing` and press **Enter**.
303+
304+
:: zone-end
305+
283306
## Test your function in Azure
284307
285308
::: zone pivot="nodejs-model-v3"

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

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To complete this tutorial:
5151

5252
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
5353

54-
## <a name="create-an-azure-functions-project"></a>Create your local project
54+
## <a name="create-an-azure-functions-project"></a>Create your local project
5555

5656
In this section, you use Visual Studio Code to create a local Azure Functions project.
5757

@@ -195,7 +195,19 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
195195

196196
Azure Functions Core Tools lets you run an Azure Functions project on your local development computer. You're prompted to install these tools the first time you start a function from Visual Studio Code.
197197

198+
::: zone pivot="nodejs-model-v4"
199+
200+
> [!NOTE]
201+
> To run the V4 programming model, your app needs to have the `EnableWorkerIndexing` feature flag set. When running locally, this should have already been set in your `local.settings.json` file when creating your project. To verify, check the following line exists in your `local.settings.json` file. If it doesn't, add it to your file.
202+
>
203+
> ```json
204+
> "AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
205+
> ```
206+
207+
::: zone-end
208+
198209
::: zone pivot="nodejs-model-v3"
210+
199211
1. To test your function, set a breakpoint in the `Hello` activity function code (*Hello/index.ts*). Press F5 or select `Debug: Start Debugging` from the command palette to start the function app project. Output from Core Tools is displayed in the **Terminal** panel.
200212
::: zone-end
201213
::: zone pivot="nodejs-model-v4"
@@ -281,6 +293,18 @@ After you've verified that the function runs correctly on your local computer, i
281293
282294
[!INCLUDE [functions-publish-project-vscode](../../../includes/functions-publish-project-vscode.md)]
283295
296+
:: zone pivot="nodejs-model-v4"
297+
298+
## Update app settings
299+
300+
To enable your V4 programming model app to run in Azure, you need to add the `EnableWorkerIndexing` flag under the `AzureWebJobsFeatureFlags` app setting.
301+
302+
1. In Visual Studio Code, press **F1** to open the command palette. In the command palette, search for and select `Azure Functions: Add New Setting...`.
303+
2. Choose your new function app, type `AzureWebJobsFeatureFlags` for the new app setting name, and press **Enter**.
304+
3. For the value, type `EnableWorkerIndexing` and press **Enter**.'
305+
306+
:: zone-end
307+
284308
## Test your function in Azure
285309
286310
::: zone pivot="nodejs-model-v3"

0 commit comments

Comments
 (0)