Skip to content

Commit f2245fd

Browse files
Merge pull request #252526 from ejizba/ej/v4GA
[Functions] Node.js model v4 GA
2 parents 0b6b0f6 + 76e9998 commit f2245fd

21 files changed

+207
-256
lines changed

articles/azure-functions/TOC.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,10 @@
390390
href: functions-reference-csharp.md
391391
- name: Execution mode comparison
392392
href: dotnet-isolated-in-process-differences.md
393-
- name: Node.js
394-
items:
395-
- name: JavaScript
396-
href: functions-reference-node.md?tabs=javascript
397-
- name: TypeScript
398-
href: functions-reference-node.md?tabs=typescript
399-
- name: Upgrade to model v4.x
400-
href: functions-node-upgrade-v4.md
393+
- name: JavaScript
394+
href: functions-reference-node.md?tabs=javascript
395+
- name: TypeScript
396+
href: functions-reference-node.md?tabs=typescript
401397
- name: Java
402398
href: functions-reference-java.md
403399
- name: PowerShell
@@ -543,6 +539,10 @@
543539
href: migrate-version-3-version-4.md
544540
- name: Migrate v1.x to v4.x
545541
href: migrate-version-1-version-4.md
542+
- name: Node.js
543+
items:
544+
- name: Migrate to model v4.x
545+
href: functions-node-upgrade-v4.md
546546
- name: Update Java versions
547547
href: update-java-versions.md
548548
- name: Monitor
@@ -675,8 +675,10 @@
675675
displayName: troubleshoot
676676
- name: Azure Cosmos DB bindings
677677
href: ../cosmos-db/troubleshoot-changefeed-functions.md?toc=/azure/azure-functions/toc.json
678-
displayName: troubleshoot
679-
- name: Python functions
678+
displayName: troubleshoot
679+
- name: Node.js
680+
href: functions-node-troubleshoot.md
681+
- name: Python
680682
items:
681683
- name: General troubleshooting
682684
href: recover-python-functions.md

articles/azure-functions/create-first-function-cli-node.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Before you begin, you must have the following prerequisites:
3131
+ The Azure [Az PowerShell module](/powershell/azure/install-azure-powershell) version 5.9.0 or later.
3232

3333
::: zone pivot="nodejs-model-v3"
34-
+ [Node.js](https://nodejs.org/) version 20 (preview), 18 or 16.
34+
+ [Node.js](https://nodejs.org/) version 14 or above.
3535
::: zone-end
3636

3737
::: zone pivot="nodejs-model-v4"
@@ -41,7 +41,7 @@ Before you begin, you must have the following prerequisites:
4141
[!INCLUDE [functions-install-core-tools](../../includes/functions-install-core-tools.md)]
4242

4343
::: zone pivot="nodejs-model-v4"
44-
+ Make sure you install version v4.0.5095 of the Core Tools, or a later version.
44+
+ Make sure you install version v4.0.5382 of the Core Tools, or a later version.
4545
::: zone-end
4646

4747
## Create a local function project
@@ -126,8 +126,7 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
126126
{
127127
"Values": {
128128
"AzureWebJobsStorage": "<Azure Storage connection information>",
129-
"FUNCTIONS_WORKER_RUNTIME": "node",
130-
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
129+
"FUNCTIONS_WORKER_RUNTIME": "node"
131130
}
132131
}
133132
```
@@ -167,28 +166,6 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
167166

168167
This command creates a function app running in your specified language runtime under the [Azure Functions Consumption Plan](consumption-plan.md), which is free for the amount of usage you incur here. The command also creates an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](functions-monitoring.md). The instance incurs no costs until you activate it.
169168

170-
::: zone pivot="nodejs-model-v4"
171-
## Update app settings
172-
173-
To enable your V4 programming model app to run in Azure, you need to add a new application setting named `AzureWebJobsFeatureFlags` with a value of `EnableWorkerIndexing`. This setting is already in your local.settings.json file.
174-
175-
Run the following command to add this setting to your new function app in Azure. Replace `<FUNCTION_APP_NAME>` and `<RESOURCE_GROUP_NAME>` with the name of your function app and resource group, respectively.
176-
177-
# [Azure CLI](#tab/azure-cli)
178-
179-
```azurecli
180-
az functionapp config appsettings set --name <FUNCTION_APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --settings AzureWebJobsFeatureFlags=EnableWorkerIndexing
181-
```
182-
183-
# [Azure PowerShell](#tab/azure-powershell)
184-
185-
```azurepowershell
186-
Update-AzFunctionAppSetting -Name <FUNCTION_APP_NAME> -ResourceGroupName <RESOURCE_GROUP_NAME> -AppSetting @{"AzureWebJobsFeatureFlags" = "EnableWorkerIndexing"}
187-
```
188-
189-
---
190-
::: zone-end
191-
192169
[!INCLUDE [functions-publish-project-cli](../../includes/functions-publish-project-cli.md)]
193170

194171
[!INCLUDE [functions-run-remote-azure-cli](../../includes/functions-run-remote-azure-cli.md)]

articles/azure-functions/create-first-function-cli-typescript.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Before you begin, you must have the following prerequisites:
3131
+ The Azure [Az PowerShell module](/powershell/azure/install-azure-powershell) version 5.9.0 or later.
3232

3333
::: zone pivot="nodejs-model-v3"
34-
+ [Node.js](https://nodejs.org/) version 18 or 16.
34+
+ [Node.js](https://nodejs.org/) version 14 or above.
3535
::: zone-end
3636
::: zone pivot="nodejs-model-v4"
3737
+ [Node.js](https://nodejs.org/) version 18 or above.
@@ -42,7 +42,7 @@ Before you begin, you must have the following prerequisites:
4242
[!INCLUDE [functions-install-core-tools](../../includes/functions-install-core-tools.md)]
4343

4444
::: zone pivot="nodejs-model-v4"
45-
+ Make sure you install version v4.0.5095 of the Core Tools, or a later version.
45+
+ Make sure you install version v4.0.5382 of the Core Tools, or a later version.
4646
::: zone-end
4747

4848
## Create a local function project
@@ -126,8 +126,7 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
126126
{
127127
"Values": {
128128
"AzureWebJobsStorage": "<Azure Storage connection information>",
129-
"FUNCTIONS_WORKER_RUNTIME": "node",
130-
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
129+
"FUNCTIONS_WORKER_RUNTIME": "node"
131130
}
132131
}
133132
```
@@ -196,28 +195,6 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
196195

197196
This command creates a function app running in your specified language runtime under the [Azure Functions Consumption Plan](consumption-plan.md), which is free for the amount of usage you incur here. The command also creates an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](functions-monitoring.md). The instance incurs no costs until you activate it.
198197

199-
::: zone pivot="nodejs-model-v4"
200-
## Update app settings
201-
202-
To enable your V4 programming model app to run in Azure, you need to add a new application setting named `AzureWebJobsFeatureFlags` with a value of `EnableWorkerIndexing`. This setting is already in your local.settings.json file.
203-
204-
Run the following command to add this setting to your new function app in Azure. Replace `<FUNCTION_APP_NAME>` and `<RESOURCE_GROUP_NAME>` with the name of your function app and resource group, respectively.
205-
206-
# [Azure CLI](#tab/azure-cli)
207-
208-
```azurecli
209-
az functionapp config appsettings set --name <FUNCTION_APP_NAME> --resource-group <RESOURCE_GROUP_NAME> --settings AzureWebJobsFeatureFlags=EnableWorkerIndexing
210-
```
211-
212-
# [Azure PowerShell](#tab/azure-powershell)
213-
214-
```azurepowershell
215-
Update-AzFunctionAppSetting -Name <FUNCTION_APP_NAME> -ResourceGroupName <RESOURCE_GROUP_NAME> -AppSetting @{"AzureWebJobsFeatureFlags" = "EnableWorkerIndexing"}
216-
```
217-
218-
---
219-
::: zone-end
220-
221198
## Deploy the function project to Azure
222199

223200
Before you use Core Tools to deploy your project to Azure, you create a production-ready build of JavaScript files from the TypeScript source files.

articles/azure-functions/create-first-function-vs-code-node.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
6565
|Prompt|Selection|
6666
|--|--|
6767
|**Select a language for your function project**|Choose `JavaScript`.|
68-
|**Select a JavaScript programming model**|Choose `Model V4 (Preview)`|
68+
|**Select a JavaScript programming model**|Choose `Model V4`|
6969
|**Select a template for your project's first function**|Choose `HTTP trigger`.|
7070
|**Provide a function name**|Type `HttpExample`.|
7171
|**Select how you would like to open your project**|Choose `Open in current window`|
@@ -83,18 +83,6 @@ After you've verified that the function runs correctly on your local computer, i
8383

8484
[!INCLUDE [functions-create-azure-resources-vs-code](../../includes/functions-create-azure-resources-vs-code.md)]
8585

86-
::: zone pivot="nodejs-model-v4"
87-
## Update app settings
88-
89-
To enable your V4 programming model app to run in Azure, you need to add a new application setting named `AzureWebJobsFeatureFlags` with a value of `EnableWorkerIndexing`. This setting is already in your local.settings.json file.
90-
91-
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...`.
92-
93-
1. Choose your new function app, type `AzureWebJobsFeatureFlags` for the new app setting name, and press <kbd>Enter</kbd>.
94-
95-
1. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.
96-
::: zone-end
97-
9886
## Deploy the project to Azure
9987

10088
[!INCLUDE [functions-deploy-project-vs-code](../../includes/functions-deploy-project-vs-code.md)]

articles/azure-functions/create-first-function-vs-code-typescript.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Before you get started, make sure you have the following requirements in place:
4141
+ [Azure Functions Core Tools 4.x](functions-run-local.md#install-the-azure-functions-core-tools).
4242
::: zone-end
4343
::: zone pivot="nodejs-model-v4"
44-
+ [Azure Functions Core Tools v4.0.5095 or above](functions-run-local.md#install-the-azure-functions-core-tools).
44+
+ [Azure Functions Core Tools v4.0.5382 or above](functions-run-local.md#install-the-azure-functions-core-tools).
4545
::: zone-end
4646

4747
## <a name="create-an-azure-functions-project"></a>Create your local project
@@ -74,7 +74,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
7474
|Prompt|Selection|
7575
|--|--|
7676
|**Select a language for your function project**|Choose `TypeScript`.|
77-
|**Select a TypeScript programming model**|Choose `Model V4 (Preview)`|
77+
|**Select a TypeScript programming model**|Choose `Model V4`|
7878
|**Select a template for your project's first function**|Choose `HTTP trigger`.|
7979
|**Provide a function name**|Type `HttpExample`.|
8080
|**Select how you would like to open your project**|Choose `Open in current window`|
@@ -92,18 +92,6 @@ After you've verified that the function runs correctly on your local computer, i
9292

9393
[!INCLUDE [functions-create-azure-resources-vs-code](../../includes/functions-create-azure-resources-vs-code.md)]
9494

95-
::: zone pivot="nodejs-model-v4"
96-
## Update app settings
97-
98-
To enable your V4 programming model app to run in Azure, you need to add a new application setting named `AzureWebJobsFeatureFlags` with a value of `EnableWorkerIndexing`. This setting is already in your local.settings.json file.
99-
100-
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...`.
101-
102-
1. Choose your new function app, type `AzureWebJobsFeatureFlags` for the new app setting name, and press <kbd>Enter</kbd>.
103-
104-
1. For the value, type `EnableWorkerIndexing` and press <kbd>Enter</kbd>.
105-
::: zone-end
106-
10795
## Deploy the project to Azure
10896

10997
[!INCLUDE [functions-deploy-project-vs-code](../../includes/functions-deploy-project-vs-code.md)]

0 commit comments

Comments
 (0)