Skip to content

Commit c16a2c3

Browse files
authored
Merge pull request #180021 from anthonychu/20211115-node16
[Functions] Add Node.js 16 preview
2 parents 68feda4 + c909f5d commit c16a2c3

7 files changed

+63
-60
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create a JavaScript function from the command line - Azure Functions
33
description: Learn how to create a JavaScript function from the command line, then publish the local Node.js project to serverless hosting in Azure Functions.
4-
ms.date: 11/03/2020
4+
ms.date: 11/18/2021
55
ms.topic: quickstart
66
ms.custom: devx-track-azurecli, devx-track-azurepowershell
77
---
@@ -30,7 +30,7 @@ Before you begin, you must have the following:
3030

3131
+ The Azure [Az PowerShell module](/powershell/azure/install-az-ps) version 5.9.0 or later.
3232

33-
+ [Node.js](https://nodejs.org/) version 14.
33+
+ [Node.js](https://nodejs.org/) version 14 or 16 (preview).
3434

3535
### Prerequisite check
3636

@@ -109,18 +109,18 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
109109
# [Azure CLI](#tab/azure-cli)
110110

111111
```azurecli
112-
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime node --runtime-version 12 --functions-version 3 --name <APP_NAME> --storage-account <STORAGE_NAME>
112+
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime node --runtime-version 14 --functions-version 4 --name <APP_NAME> --storage-account <STORAGE_NAME>
113113
```
114114

115-
The [az functionapp create](/cli/azure/functionapp#az_functionapp_create) command creates the function app in Azure. If you're using Node.js 10, also change `--runtime-version` to `10`.
115+
The [az functionapp create](/cli/azure/functionapp#az_functionapp_create) command creates the function app in Azure. If you're using Node.js 16, also change `--runtime-version` to `16`.
116116

117117
# [Azure PowerShell](#tab/azure-powershell)
118118

119119
```azurepowershell
120-
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime node -RuntimeVersion 12 -FunctionsVersion 3 -Location <REGION>
120+
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime node -RuntimeVersion 14 -FunctionsVersion 4 -Location <REGION>
121121
```
122122

123-
The [New-AzFunctionApp](/powershell/module/az.functions/new-azfunctionapp) cmdlet creates the function app in Azure. If you're using Node.js 10, change `-RuntimeVersion` to `10`.
123+
The [New-AzFunctionApp](/powershell/module/az.functions/new-azfunctionapp) cmdlet creates the function app in Azure. If you're using Node.js 16, change `-RuntimeVersion` to `16`.
124124

125125
---
126126

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create a TypeScript function from the command line - Azure Functions
33
description: Learn how to create a TypeScript function from the command line, then publish the local project to serverless hosting in Azure Functions.
4-
ms.date: 11/03/2020
4+
ms.date: 11/18/2021
55
ms.topic: quickstart
66
ms.custom: devx-track-azurecli, devx-track-azurepowershell
77
---
@@ -30,7 +30,7 @@ Before you begin, you must have the following:
3030

3131
+ The Azure [Az PowerShell module](/powershell/azure/install-az-ps) version 5.9.0 or later.
3232

33-
+ [Node.js](https://nodejs.org/) version 14.
33+
+ [Node.js](https://nodejs.org/) version 14 or 16 (preview).
3434

3535
### Prerequisite check
3636

@@ -142,18 +142,18 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
142142
# [Azure CLI](#tab/azure-cli)
143143

144144
```azurecli
145-
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime node --runtime-version 12 --functions-version 3 --name <APP_NAME> --storage-account <STORAGE_NAME>
145+
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime node --runtime-version 14 --functions-version 4 --name <APP_NAME> --storage-account <STORAGE_NAME>
146146
```
147147

148-
The [az functionapp create](/cli/azure/functionapp#az_functionapp_create) command creates the function app in Azure. If you're using Node.js 10, also change `--runtime-version` to `10`.
148+
The [az functionapp create](/cli/azure/functionapp#az_functionapp_create) command creates the function app in Azure. If you're using Node.js 16, also change `--runtime-version` to `16`.
149149

150150
# [Azure PowerShell](#tab/azure-powershell)
151151

152152
```azurepowershell
153-
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime node -RuntimeVersion 12 -FunctionsVersion 3 -Location '<REGION>'
153+
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime node -RuntimeVersion 14 -FunctionsVersion 4 -Location '<REGION>'
154154
```
155155

156-
The [New-AzFunctionApp](/powershell/module/az.functions/new-azfunctionapp) cmdlet creates the function app in Azure. If you're using Node.js 10, change `-RuntimeVersion` to `10`.
156+
The [New-AzFunctionApp](/powershell/module/az.functions/new-azfunctionapp) cmdlet creates the function app in Azure. If you're using Node.js 16, change `-RuntimeVersion` to `16`.
157157

158158
---
159159

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create a JavaScript function using Visual Studio Code - Azure Functions
33
description: Learn how to create a JavaScript function, then publish the local Node.js project to serverless hosting in Azure Functions using the Azure Functions extension in Visual Studio Code.
44
ms.topic: quickstart
5-
ms.date: 07/01/2021
5+
ms.date: 11/18/2021
66
adobe-target: true
77
adobe-target-activity: DocsExp–386541–A/B–Enhanced-Readability-Quickstarts–2.19.2021
88
adobe-target-experience: Experience B
@@ -25,12 +25,14 @@ Before you get started, make sure you have the following requirements in place:
2525

2626
+ An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
2727

28-
+ [Node.js 10.14.1+](https://nodejs.org/). Use the `node --version` command to check your version.
28+
+ [Node.js 14.x](https://nodejs.org/en/download/releases/) or [Node.js 16.x](https://nodejs.org/en/download/releases/) (preview). Use the `node --version` command to check your version.
2929

3030
+ [Visual Studio Code](https://code.visualstudio.com/) on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms).
3131

3232
+ The [Azure Functions extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) for Visual Studio Code.
3333

34+
+ [Azure Functions Core Tools 4.x](functions-run-local.md#install-the-azure-functions-core-tools).
35+
3436
## <a name="create-an-azure-functions-project"></a>Create your local project
3537

3638
In this section, you use Visual Studio Code to create a local Azure Functions project in JavaScript. Later in this article, you'll publish your function code to Azure.

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create a TypeScript function using Visual Studio Code - Azure Functions
33
description: Learn how to create a TypeScript function, then publish the local Node.js project to serverless hosting in Azure Functions using the Azure Functions extension in Visual Studio Code.
44
ms.topic: quickstart
5-
ms.date: 11/04/2020
5+
ms.date: 11/18/2021
66
---
77

88
# Quickstart: Create a function in Azure with TypeScript using Visual Studio Code
@@ -21,12 +21,14 @@ Before you get started, make sure you have the following requirements in place:
2121

2222
+ An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
2323

24-
+ [Node.js](https://nodejs.org/), Active LTS and Maintenance LTS versions (10.14.1 recommended). Use the `node --version` command to check your version.
24+
+ [Node.js 14.x](https://nodejs.org/en/download/releases/) or [Node.js 16.x](https://nodejs.org/en/download/releases/) (preview). Use the `node --version` command to check your version.
2525

2626
+ [Visual Studio Code](https://code.visualstudio.com/) on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms).
2727

2828
+ The [Azure Functions extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) for Visual Studio Code.
2929

30+
+ [Azure Functions Core Tools 4.x](functions-run-local.md#install-the-azure-functions-core-tools).
31+
3032
## <a name="create-an-azure-functions-project"></a>Create your local project
3133

3234
In this section, you use Visual Studio Code to create a local Azure Functions project in TypeScript. Later in this article, you'll publish your function code to Azure.

0 commit comments

Comments
 (0)