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
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.
22
+
This article creates an HTTP triggered function that runs on .NET in-process or isolated worker process with an example of .NET 6. There is also a [Visual Studio Code-based version](create-first-function-vs-code-csharp.md) of this article.
23
23
24
24
Completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
Copy file name to clipboardExpand all lines: articles/azure-functions/create-first-function-vs-code-csharp.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Create a C# function using Visual Studio Code - Azure Functions"
3
3
description: "Learn how to create a C# function, then publish the local project to serverless hosting in Azure Functions using the Azure Functions extension in Visual Studio Code. "
# Quickstart: Create a C# function in Azure using Visual Studio Code
15
15
16
-
In this article, you use Visual Studio Code 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. This article creates an HTTP triggered function that runs on .NET 6.0. There's also a [CLI-based version](create-first-function-cli-csharp.md) of this article.
16
+
This article creates an HTTP triggered function that runs on .NET 6, either in-process or isolated worker process. .NET Functions isolated worker process also lets you run on .NET 7 (in preview). For information about all .NET versions supported by isolated worker process, see [Supported versions](dotnet-isolated-process-guide.md#supported-versions).
17
17
18
-
By default, this article shows you how to create C# functions that run [in the same process as the Functions host](functions-dotnet-class-library.md). These _in-process_ C# functions are only supported on Long Term Support (LTS) versions of .NET, such as .NET 6. To create C# functions on .NET 6 that can also run on [other supported versions](functions-versions.md) for Azure functions [in an isolated worker process](dotnet-isolated-process-guide.md).
18
+
There's also a [CLI-based version](create-first-function-cli-csharp.md) of this article.
19
+
20
+
By default, this article shows you how to create C# functions that run on .NET 6 [in the same process as the Functions host](functions-dotnet-class-library.md). These _in-process_ C# functions are only supported on [Long Term Support (LTS)](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) .NET versions, such as .NET 6. When creating your project, you can choose to instead create a function that runs on .NET 6 in an [isolated worker process](dotnet-isolated-process-guide.md). [Isolated worker process](dotnet-isolated-process-guide.md) supports both LTS and Standard Term Support (STS) versions of .NET. For more information, see [Supported versions](dotnet-isolated-process-guide.md#supported-versions) in the .NET Functions isolated worker process guide.
19
21
20
22
Completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
21
23
@@ -37,7 +39,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
37
39
38
40
1. Provide the following information at the prompts:
39
41
40
-
# [.NET 6](#tab/in-process)
42
+
# [In-process](#tab/in-process)
41
43
42
44
|Prompt|Selection|
43
45
|--|--|
@@ -49,7 +51,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
49
51
|**Authorization level**|Choose `Anonymous`, which enables anyone to call your function endpoint. To learn about authorization level, see [Authorization keys](functions-bindings-http-webhook-trigger.md#authorization-keys).|
50
52
|**Select how you would like to open your project**|Select `Add to workspace`.|
51
53
52
-
# [.NET 6 Isolated](#tab/isolated-process)
54
+
# [Isolated process](#tab/isolated-process)
53
55
54
56
|Prompt|Selection|
55
57
|--|--|
@@ -66,7 +68,7 @@ In this section, you use Visual Studio Code to create a local Azure Functions pr
66
68
> [!NOTE]
67
69
> If you don't see .NET 6 as a runtime option, check the following:
68
70
>
69
-
> + Make sure you have installed the .NET 6.0 SDK.
71
+
> + Make sure you have installed the .NET 6.0 SDK or other available .NET SDK versions, from .NET website [here](https://dotnet.microsoft.com/download).
70
72
> + Press F1 and type `Preferences: Open user settings`, then search for `Azure Functions: Project Runtime` and change the default runtime version to `~4`.
71
73
72
74
1. Visual Studio Code uses the provided information and generates an Azure Functions project with an HTTP trigger. You can view the local project files in the Explorer. For more information about the files that are created, see [Generated project files](functions-develop-vs-code.md?tabs=csharp#generated-project-files).
@@ -87,13 +89,13 @@ After checking that the function runs correctly on your local computer, it's tim
87
89
88
90
You have used [Visual Studio Code](functions-develop-vs-code.md?tabs=csharp) to create a function app with a simple HTTP-triggered function. In the next article, you expand that function by connecting to either Azure Cosmos DB or Azure Queue Storage. To learn more about connecting to other Azure services, see [Add bindings to an existing function in Azure Functions](add-bindings-existing-function.md?tabs=csharp).
89
91
90
-
# [.NET 6](#tab/in-process)
92
+
# [In-process](#tab/in-process)
91
93
92
94
> [!div class="nextstepaction"]
93
95
> [Connect to Azure Cosmos DB](functions-add-output-binding-cosmos-db-vs-code.md?pivots=programming-language-csharp&tabs=in-process)
94
96
> [Connect to Azure Queue Storage](functions-add-output-binding-storage-queue-vs-code.md?pivots=programming-language-csharp&tabs=in-process)
95
97
96
-
# [.NET 6 Isolated](#tab/isolated-process)
98
+
# [Isolated process](#tab/isolated-process)
97
99
98
100
> [!div class="nextstepaction"]
99
101
> [Connect to Azure Cosmos DB](functions-add-output-binding-cosmos-db-vs-code.md?pivots=programming-language-csharp&tabs=isolated-process)
0 commit comments