Skip to content

Commit 18e30c7

Browse files
committed
[Functions] Node.js model v4 GA
1 parent 0148360 commit 18e30c7

19 files changed

+180
-246
lines changed

articles/azure-functions/TOC.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -392,14 +392,10 @@
392392
href: functions-reference-csharp.md
393393
- name: Execution mode comparison
394394
href: dotnet-isolated-in-process-differences.md
395-
- name: Node.js
396-
items:
397-
- name: JavaScript
398-
href: functions-reference-node.md?tabs=javascript
399-
- name: TypeScript
400-
href: functions-reference-node.md?tabs=typescript
401-
- name: Upgrade to model v4.x
402-
href: functions-node-upgrade-v4.md
395+
- name: JavaScript
396+
href: functions-reference-node.md?tabs=javascript
397+
- name: TypeScript
398+
href: functions-reference-node.md?tabs=typescript
403399
- name: Java
404400
href: functions-reference-java.md
405401
- name: PowerShell
@@ -545,6 +541,10 @@
545541
href: migrate-version-3-version-4.md
546542
- name: Migrate v1.x to v4.x
547543
href: migrate-version-1-version-4.md
544+
- name: Node.js
545+
items:
546+
- name: Migrate to model v4.x
547+
href: functions-node-upgrade-v4.md
548548
- name: Monitor
549549
items:
550550
- name: Monitor function apps with Azure 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: 2 additions & 25 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"
@@ -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: 2 additions & 25 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.
@@ -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: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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)