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
In this article, you use command-line tools to create a C# function that responds to HTTP requests. After testing the code locally, you deploy it to the serverless environment of Azure Functions.
Completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
19
+
This article creates an HTTP triggered function that runs on .NET 6.0. There is also a [Visual Studio Code-based version](create-first-function-vs-code-csharp.md) of this article.
23
20
24
-
There is also a [Visual Studio Code-based version](create-first-function-vs-code-csharp.md) of this article.
21
+
Completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
+[.NET Core 3.1 SDK](https://dotnet.microsoft.com/download). Required by the build process.
51
-
52
-
+[Azure Functions Core Tools](./functions-run-local.md#v2) version 4.x.
53
-
54
-
+ One of the following tools for creating Azure resources:
55
-
56
-
+[Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later.
57
-
58
-
+ The Azure [Az PowerShell module](/powershell/azure/install-az-ps) version 5.9.0 or later.
59
-
---
60
-
::: zone-end
61
-
62
37
You also need 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).
63
38
64
39
### Prerequisite check
@@ -67,7 +42,7 @@ Verify your prerequisites, which depend on whether you are using Azure CLI or Az
67
42
68
43
# [Azure CLI](#tab/azure-cli)
69
44
70
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
45
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
71
46
72
47
+ Run `dotnet --list-sdks` to check that the required versions are installed.
73
48
@@ -77,7 +52,7 @@ Verify your prerequisites, which depend on whether you are using Azure CLI or Az
77
52
78
53
# [Azure PowerShell](#tab/azure-powershell)
79
54
80
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
55
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
81
56
82
57
+ Run `dotnet --list-sdks` to check that the required versions are installed.
83
58
@@ -227,10 +202,8 @@ To learn more, see [Azure Functions HTTP triggers and bindings](./functions-bind
227
202
228
203
---
229
204
230
-
::: zone pivot="programming-runtime-functions-v4"
231
205
> [!NOTE]
232
206
> This command creates a function app using the 3.x version of the Azure Functions runtime. The `func azure functionapp publish` command that you'll run later updates the app to version 4.x.
233
-
::: zone-end
234
207
235
208
In the previous example, replace `<STORAGE_NAME>` with the name of the account you used in the previous step, and replace `<APP_NAME>` with a globally unique name appropriate to you. The `<APP_NAME>` is also the default DNS domain for the function app.
Copy file name to clipboardExpand all lines: articles/azure-functions/create-first-function-cli-java.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Before you begin, you must have the following:
29
29
30
30
+ 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).
31
31
32
-
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 3.x..
32
+
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.x.
33
33
34
34
+ The [Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later.
35
35
@@ -39,7 +39,7 @@ Before you begin, you must have the following:
39
39
40
40
### Prerequisite check
41
41
42
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
42
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
43
43
44
44
+ Run `az --version` to check that the Azure CLI version is 2.4 or later.
In this article, you use command-line tools to create a JavaScript function that responds to HTTP requests. After testing the code locally, you deploy it to the serverless environment of Azure Functions.
@@ -23,31 +22,31 @@ Before you begin, you must have the following:
23
22
24
23
+ 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).
25
24
26
-
+ The [Azure Functions Core Tools](./functions-run-local.md#v2) version 3.x.
25
+
+ The [Azure Functions Core Tools](./functions-run-local.md#v2) version 4.x.
27
26
28
27
+ One of the following tools for creating Azure resources:
29
28
30
29
+[Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later.
31
30
32
31
+ The Azure [Az PowerShell module](/powershell/azure/install-az-ps) version 5.9.0 or later.
33
32
34
-
+[Node.js](https://nodejs.org/) version 12. Node.js version 10 is also supported.
33
+
+[Node.js](https://nodejs.org/) version 14.
35
34
36
35
### Prerequisite check
37
36
38
37
Verify your prerequisites, which depend on whether you are using Azure CLI or Azure PowerShell for creating Azure resources:
39
38
40
39
# [Azure CLI](#tab/azure-cli)
41
40
42
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
41
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
43
42
44
43
+ Run `az --version` to check that the Azure CLI version is 2.4 or later.
45
44
46
45
+ Run `az login` to sign in to Azure and verify an active subscription.
47
46
48
47
# [Azure PowerShell](#tab/azure-powershell)
49
48
50
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
49
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
51
50
52
51
+ Run `(Get-Module -ListAvailable Az).Version` and verify version 5.0 or later.
Copy file name to clipboardExpand all lines: articles/azure-functions/create-first-function-cli-powershell.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Before you begin, you must have the following:
22
22
23
23
+ 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).
24
24
25
-
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 3.x.
25
+
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.x.
26
26
27
27
+ One of the following tools for creating Azure resources:
28
28
@@ -38,15 +38,15 @@ Verify your prerequisites, which depend on whether you are using Azure CLI or Az
38
38
39
39
# [Azure CLI](#tab/azure-cli)
40
40
41
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
41
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
42
42
43
43
+ Run `az --version` to check that the Azure CLI version is 2.4 or later.
44
44
45
45
+ Run `az login` to sign in to Azure and verify an active subscription.
46
46
47
47
# [Azure PowerShell](#tab/azure-powershell)
48
48
49
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
49
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
50
50
51
51
+ Run `(Get-Module -ListAvailable Az).Version` and verify version 5.0 or later.
Copy file name to clipboardExpand all lines: articles/azure-functions/create-first-function-cli-python.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Before you begin, you must have the following:
26
26
27
27
+ 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).
28
28
29
-
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 3.x.
29
+
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.x.
30
30
31
31
+ One of the following tools for creating Azure resources:
32
32
@@ -42,23 +42,23 @@ Verify your prerequisites, which depend on whether you are using Azure CLI or Az
42
42
43
43
# [Azure CLI](#tab/azure-cli)
44
44
45
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
45
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
46
46
47
47
+ Run `az --version` to check that the Azure CLI version is 2.4 or later.
48
48
49
49
+ Run `az login` to sign in to Azure and verify an active subscription.
50
50
51
-
+ Run `python --version` (Linux/macOS) or `py --version` (Windows) to check your Python version reports 3.8.x, 3.7.x or 3.6.x.
51
+
+ Run `python --version` (Linux/macOS) or `py --version` (Windows) to check your Python version reports 3.9.x, 3.8.x, or 3.7.x.
52
52
53
53
# [Azure PowerShell](#tab/azure-powershell)
54
54
55
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
55
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
56
56
57
57
+ Run `(Get-Module -ListAvailable Az).Version` and verify version 5.0 or later.
58
58
59
59
+ Run `Connect-AzAccount` to sign in to Azure and verify an active subscription.
60
60
61
-
+ Run `python --version` (Linux/macOS) or `py --version` (Windows) to check your Python version reports 3.8.x, 3.7.x or 3.6.x.
61
+
+ Run `python --version` (Linux/macOS) or `py --version` (Windows) to check your Python version reports 3.9.x, 3.8.x, or 3.7.x.
Copy file name to clipboardExpand all lines: articles/azure-functions/create-first-function-cli-typescript.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,31 +22,31 @@ Before you begin, you must have the following:
22
22
23
23
+ 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).
24
24
25
-
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 3.x.
25
+
+ The [Azure Functions Core Tools](functions-run-local.md#v2) version 4.x.
26
26
27
27
+ One of the following tools for creating Azure resources:
28
28
29
29
+[Azure CLI](/cli/azure/install-azure-cli) version 2.4 or later.
30
30
31
31
+ The Azure [Az PowerShell module](/powershell/azure/install-az-ps) version 5.9.0 or later.
32
32
33
-
+[Node.js](https://nodejs.org/), Active LTS and Maintenance LTS versions (8.11.1 and 10.14.1 recommended).
33
+
+[Node.js](https://nodejs.org/) version 14.
34
34
35
35
### Prerequisite check
36
36
37
37
Verify your prerequisites, which depend on whether you are using Azure CLI or Azure PowerShell for creating Azure resources:
38
38
39
39
# [Azure CLI](#tab/azure-cli)
40
40
41
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
41
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
42
42
43
43
+ Run `az --version` to check that the Azure CLI version is 2.4 or later.
44
44
45
45
+ Run `az login` to sign in to Azure and verify an active subscription.
46
46
47
47
# [Azure PowerShell](#tab/azure-powershell)
48
48
49
-
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 3.x.
49
+
+ In a terminal or command window, run `func --version` to check that the Azure Functions Core Tools are version 4.x.
50
50
51
51
+ Run `(Get-Module -ListAvailable Az).Version` and verify version 5.0 or later.
0 commit comments