Skip to content

Commit c00e217

Browse files
committed
minor updates
1 parent b6a9d39 commit c00e217

File tree

5 files changed

+26
-16
lines changed

5 files changed

+26
-16
lines changed

articles/azure-functions/durable/durable-functions-cloud-backup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The function uses the `readdirp` module (version 2.x) to recursively read the di
130130

131131
Here is the implementation of the `getFileList` activity function:
132132

133-
:::code language="javascript" source="~/azure-functions-durable-js-v3/samples-js/functions/backupSiteContent.js" range="1,7,36-48":::
133+
:::code language="javascript" source="~/azure-functions-durable-js-v3/samples-js/functions/backupSiteContent.js" range="1,3,7,36-48":::
134134

135135
The function uses the `readdirp` module (version `3.x`) to recursively read the directory structure.
136136

articles/azure-functions/durable/durable-functions-orchestrations.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ Durable Functions is an extension of [Azure Functions](../functions-overview.md)
2020

2121
This article gives you an overview of orchestrator functions and how they can help you solve various app development challenges. If you are not already familiar with the types of functions available in a Durable Functions app, read the [Durable Function types](durable-functions-types-features-overview.md) article first.
2222

23-
> [!NOTE]
24-
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
25-
>
26-
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
27-
2823
## Orchestration identity
2924

3025
Each *instance* of an orchestration has an instance identifier (also known as an *instance ID*). By default, each instance ID is an autogenerated GUID. However, instance IDs can also be any user-generated string value. Each orchestration instance ID must be unique within a [task hub](durable-functions-task-hubs.md).
@@ -59,6 +54,11 @@ When an orchestration function is given more work to do (for example, a response
5954

6055
The event-sourcing behavior of the Durable Task Framework is closely coupled with the orchestrator function code you write. Suppose you have an activity-chaining orchestrator function, like the following orchestrator function:
6156

57+
> [!NOTE]
58+
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
59+
>
60+
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
61+
6262
# [C# (InProc)](#tab/csharp-inproc)
6363

6464
```csharp

articles/azure-functions/durable/durable-functions-sequence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The `context` object contains a `df` durable orchestration context object that l
6868

6969
:::code language="javascript" source="~/azure-functions-durable-js-v3/samples-js/functions/sayHello.js" range="1-14":::
7070

71-
All JavaScript orchestration functions must include the [`durable-functions` module](https://www.npmjs.com/package/durable-functions). This module enables you to write Durable Functions in JavaScript. To use the V4 node programming model, you need to install the preview `v3.x` of `durable-functions`.
71+
All JavaScript orchestration functions must include the [`durable-functions` module](https://www.npmjs.com/package/durable-functions). This module enables you to write Durable Functions in JavaScript. To use the V4 node programming model, you need to install the preview `v3.x` version of `durable-functions`.
7272

7373
There are two significant differences between an orchestrator function and other JavaScript functions:
7474

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ To complete this tutorial:
3030

3131
* Install [Visual Studio Code](https://code.visualstudio.com/download).
3232

33+
::: zone pivot="nodejs-model-v3"
3334
* Install the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) VS Code extension
35+
::: zone-end
36+
::: zone pivot="nodejs-model-v4"
37+
* Install the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) VS Code extension version `1.10.4` or above.
38+
::: zone-end
3439

3540
::: zone pivot="nodejs-model-v3"
3641
* Make sure you have the latest version of the [Azure Functions Core Tools](../functions-run-local.md).
@@ -87,7 +92,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
8792

8893
Visual Studio Code installs the Azure Functions Core Tools, if needed. It also creates a function app project in a folder. This project contains the [host.json](../functions-host-json.md) and [local.settings.json](../functions-develop-local.md#local-settings-file) configuration files.
8994

90-
A package.json file is also created in the root folder.
95+
A `package.json` file is also created in the root folder.
9196

9297
## Install the Durable Functions npm package
9398

@@ -96,7 +101,7 @@ To work with Durable Functions in a Node.js function app, you use a library call
96101
To use the V4 programming model, you need to install the preview `v3.x` version of `durable-functions`.
97102
::: zone-end
98103

99-
1. Use the *View* menu or <kbd>Ctrl+Shift+`</kbd> to open a new terminal in VS Code.
104+
1. Use the *View* menu or <kbd>Ctrl + Shift + `</kbd> to open a new terminal in VS Code.
100105

101106
::: zone pivot="nodejs-model-v3"
102107
2. Install the `durable-functions` npm package by running `npm install durable-functions` in the root directory of the function app.
@@ -195,7 +200,7 @@ You now have a Durable Functions app that can be run locally and deployed to Azu
195200
::: zone pivot="nodejs-model-v4"
196201

197202
> [!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.
203+
> To run the V4 programming model, your app needs to have the `EnableWorkerIndexing` feature flag set. When running locally, you need to set `AzureWebJobsFeaturesFlags` to value of `EnableWorkerIndexing` in your `local.settings.json` file. This should already be set when creating your project. To verify, check the following line exists in your `local.settings.json` file, and add it if it doesn't.
199204
>
200205
> ```json
201206
> "AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
@@ -298,7 +303,7 @@ After you've verified that the function runs correctly on your local computer, i
298303
To enable your V4 programming model app to run in Azure, you need to add the `EnableWorkerIndexing` flag under the `AzureWebJobsFeatureFlags` app setting.
299304
300305
1. In Visual Studio Code, press <kbd>F1</kbd> 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 <kbd>Enter</kbd>.
306+
2. Choose your new function app, then type `AzureWebJobsFeatureFlags` for the new app setting name, and press <kbd>Enter</kbd>.
302307
3. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.
303308
304309
::: zone-end

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ To complete this tutorial:
3030

3131
* Install [Visual Studio Code](https://code.visualstudio.com/download).
3232

33+
::: zone pivot="nodejs-model-v3"
3334
* Install the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) VS Code extension
35+
::: zone-end
36+
::: zone pivot="nodejs-model-v4"
37+
* Install the [Azure Functions](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) VS Code extension version `1.10.4` or above.
38+
::: zone-end
3439

3540
::: zone pivot="nodejs-model-v3"
3641
* Make sure you have the latest version of the [Azure Functions Core Tools](../functions-run-local.md).
@@ -55,7 +60,7 @@ To complete this tutorial:
5560

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

58-
1. In Visual Studio Code, press <kbd>F1</kbd> (or <kbd>Ctrl/Cmd+Shift+P</kbd>) to open the command palette. In the command palette, search for and select `Azure Functions: Create New Project...`.
63+
1. In Visual Studio Code, press <kbd>F1</kbd> (or <kbd>Ctrl/Cmd + Shift + P</kbd>) to open the command palette. In the command palette, search for and select `Azure Functions: Create New Project...`.
5964

6065
![Create function](media/quickstart-js-vscode/functions-create-project.png)
6166

@@ -88,7 +93,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
8893

8994
Visual Studio Code installs the Azure Functions Core Tools, if needed. It also creates a function app project in a folder. This project contains the [host.json](../functions-host-json.md) and [local.settings.json](../functions-develop-local.md#local-settings-file) configuration files.
9095

91-
A `package.json` and a `tsconfig.json` file are also created in the root folder.
96+
A `package.json` file and a `tsconfig.json` file are also created in the root folder.
9297

9398
## Install the Durable Functions npm package
9499

@@ -97,7 +102,7 @@ To work with Durable Functions in a Node.js function app, you use a library call
97102
To use the V4 programming model, you need to install the preview `v3.x` version of `durable-functions`.
98103
::: zone-end
99104

100-
1. Use the *View* menu or <kbd>Ctrl+Shift+`</kbd> to open a new terminal in VS Code.
105+
1. Use the *View* menu or <kbd>Ctrl + Shift + `</kbd> to open a new terminal in VS Code.
101106

102107
::: zone pivot="nodejs-model-v3"
103108
2. Install the `durable-functions` npm package by running `npm install durable-functions` in the root directory of the function app.
@@ -198,7 +203,7 @@ Azure Functions Core Tools lets you run an Azure Functions project on your local
198203
::: zone pivot="nodejs-model-v4"
199204

200205
> [!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.
206+
> To run the V4 programming model, your app needs to have the `EnableWorkerIndexing` feature flag set. When running locally, you need to set `AzureWebJobsFeaturesFlags` to value of `EnableWorkerIndexing` in your `local.settings.json` file. This should already be set when creating your project. To verify, check the following line exists in your `local.settings.json` file, and add it if it doesn't.
202207
>
203208
> ```json
204209
> "AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
@@ -300,7 +305,7 @@ After you've verified that the function runs correctly on your local computer, i
300305
To enable your V4 programming model app to run in Azure, you need to add the `EnableWorkerIndexing` flag under the `AzureWebJobsFeatureFlags` app setting.
301306
302307
1. In Visual Studio Code, press <kbd>F1</kbd> 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 <kbd>Enter</kbd>.
308+
2. Choose your new function app, then type `AzureWebJobsFeatureFlags` for the new app setting name, and press <kbd>Enter</kbd>.
304309
3. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.'
305310
306311
::: zone-end

0 commit comments

Comments
 (0)