You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/quickstart-js-vscode.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,17 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
192
192
193
193
## Test the function locally
194
194
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.
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.
196
207
197
208
::: zone pivot="nodejs-model-v3"
@@ -280,6 +291,18 @@ After you've verified that the function runs correctly on your local computer, i
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**.
## <aname="create-an-azure-functions-project"></a>Create your local project
54
+
## <aname="create-an-azure-functions-project"></a>Create your local project
55
55
56
56
In this section, you use Visual Studio Code to create a local Azure Functions project.
57
57
@@ -195,7 +195,19 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
195
195
196
196
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.
197
197
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.
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.
200
212
::: zone-end
201
213
::: zone pivot="nodejs-model-v4"
@@ -281,6 +293,18 @@ After you've verified that the function runs correctly on your local computer, i
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**.'
0 commit comments