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
Azure Functions lets you run your code in a [serverless](https://azure.microsoft.com/solutions/serverless/) environment without having to first create a virtual machine (VM) or publish a web application. In this article, you learn how to use Azure Functions to create a "hello world" HTTP-triggered function in the Azure portal.
13
-
14
-
For more information about HTTP triggers, see [Azure Functions HTTP triggers and bindings overview](functions-bindings-http-webhook.md).
15
-
16
-

12
+
Azure Functions lets you run your code in a serverless environment without having to first create a virtual machine (VM) or publish a web application. In this article, you learn how to use Azure Functions to create a "hello world" HTTP triggered function in the Azure portal.
@@ -31,7 +27,7 @@ You must have a function app to host the execution of your functions. A function
31
27
32
28
Next, create a function in the new function app.
33
29
34
-
## <aname="create-function"></a>Create an HTTP-triggered function
30
+
## <aname="create-function"></a>Create an HTTPtriggered function
35
31
36
32
1. Expand your new function app, select the **+** button next to **Functions**, choose **In-portal**, and then select **Continue**.
37
33
@@ -41,7 +37,7 @@ Next, create a function in the new function app.
41
37
42
38

43
39
44
-
A function is created using a language-specific template for an HTTP-triggered function.
40
+
A function is created using a language-specific template for an HTTPtriggered function.
45
41
46
42
Now, you can run the new function by sending an HTTP request.
47
43
@@ -53,7 +49,7 @@ Now, you can run the new function by sending an HTTP request.
53
49
54
50

55
51
56
-
1. Paste the function URL into your browser's address bar. Add the query string value *&name=<your_name>* to the end of this URL and press Enter to run the request.
52
+
1. Paste the function URL into your browser's address bar. Add the query string value `&name=<your_name>` to the end of this URL and press Enter to run the request.
57
53
58
54
The following example shows the response in the browser:
# Quickstart: Create your first function in Azure using Visual Studio
10
10
11
-
Azure Functions lets you run your code in a [serverless](https://azure.microsoft.com/solutions/serverless/) environment without having to first create a VM or publish a web application.
11
+
Azure Functions lets you run your code in a serverless environment without having to first create a VM or publish a web application.
12
12
13
13
In this quickstart, you learn how to use Visual Studio 2019 to locally create and test a "hello world" HTTP-triggered C# function app, which you then publish to Azure.
14
14
15
15

16
16
17
-
This quickstart is designed for Visual Studio 2019. If you want to create an Azure Functions project by using Visual Studio 2017, you must first install the [latest Azure Functions tools](functions-develop-vs.md#check-your-tools-version).
18
-
19
-
To learn more about developing functions as .NET class libraries, see [Azure Functions C# developer reference](functions-dotnet-class-library.md).
17
+
This quickstart is designed for Visual Studio 2019.
20
18
21
19
## Prerequisites
22
20
23
-
To complete this tutorial, first install [Visual Studio 2019](https://azure.microsoft.com/downloads/). Ensure you select the **Azure development** workload during installation.
21
+
To complete this tutorial, first install [Visual Studio 2019](https://azure.microsoft.com/downloads/). Ensure you select the **Azure development** workload during installation. If you want to create an Azure Functions project by using Visual Studio 2017 instead, you must first install the [latest Azure Functions tools](functions-develop-vs.md#check-your-tools-version).
24
22
25
23

26
24
@@ -52,11 +50,11 @@ Before you can publish your project, you must have a function app in your Azure
52
50
53
51
## Test your function in Azure
54
52
55
-
1. Copy the base URL of the function app from the **Publish** profile page. Replace the *localhost:port* portion of the URL you used to test the function locally with the new base URL. Append the query string *?name=<YOUR_NAME>* to this URL and run the request.
53
+
1. Copy the base URL of the function app from the **Publish** profile page. Replace the `localhost:port` portion of the URL you used to test the function locally with the new base URL. Append the query string `?name=<YOUR_NAME>` to this URL and run the request.
56
54
57
55
The URL that calls your HTTP triggered function is in the following format:
2. Paste this new URL for the HTTP request into your browser's address bar. The following image shows the response in the browser to the remote GET request returned by the function:
1. Select **Go to resource** to view your new function app. You can also select **Pin to dashboard**. Pinning makes it easier to return to this function app resource from your dashboard.
Copy file name to clipboardExpand all lines: includes/functions-run-function-test-local-vs.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.author: glenga
12
12
13
13

14
14
15
-
3. Paste the URL for the HTTP request into your browser's address bar. Append the query string *?name=<YOUR_NAME>* to this URL and execute the request. The following image shows the response in the browser to the local GET request returned by the function:
15
+
3. Paste the URL for the HTTP request into your browser's address bar. Append the query string `?name=<YOUR_NAME>` to this URL and run the request. The following image shows the response in the browser to the local GET request returned by the function:
16
16
17
17

|**Name**| Globally unique name | Name that uniquely identifies your new function app. Accept this name or enter a new name. Valid characters are: *a-z*, *0-9*, and *-*. |
32
+
|**Name**| Globally unique name | Name that uniquely identifies your new function app. Accept this name or enter a new name. Valid characters are: `a-z`, `0-9`, and `-`. |
33
33
|**Subscription**| Your subscription | The Azure subscription to use. Accept this subscription or select a new one from the drop-down list. |
34
34
|**[Resource Group](../articles/azure-resource-manager/management/overview.md)**| Name of your resource group | The resource group in which to create your function app. Select an existing resource group from the drop-down list or choose **New** to create a new resource group.|
35
35
|**[Hosting Plan](../articles/azure-functions/functions-scale.md)**| Name of your hosting plan | Select **New** to configure a serverless plan. Make sure to choose the **Consumption** under **Size**. When you publish your project to a function app that runs in a [Consumption plan](../articles/azure-functions/functions-scale.md#consumption-plan), you pay only for executions of your functions app. Other hosting plans incur higher costs. If you run in a plan other than **Consumption**, you must manage the [scaling of your function app](../articles/azure-functions/functions-scale.md). Choose a **Location** in a [region](https://azure.microsoft.com/regions/) near you or other services your functions access. |
0 commit comments