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
1.Choose **WebHook + API**, and then select **Create**.
38
+
1.In the **New Function** window, accept the default name for **New Function**, or enter a new name.
37
39
38
-

40
+
1. Choose **Anonymous** from the **Authorization level** drop-down list, and then select **Create Function**.
39
41
40
-
A function is created using a language-specific template for an HTTP triggered function.
41
-
42
-
Now, you can run the new function by sending an HTTP request.
42
+
Azure creates the HTTP trigger function. Now, you can run the new function by sending an HTTP request.
43
43
44
44
## Test the function
45
45
46
-
1. In your new function, select **</> Get function URL** at the top right.
46
+
1. In your new HTTP trigger function, select **Code + Test** from the left menu, then select **Get function URL** from the top menu.
47
+
48
+

47
49
48
-
1. In the **Get function URL** dialog box, select **default (Function key)** from the drop-down list, and then select **Copy**.
50
+
1. In the **Get function URL** dialog box, select **default** from the drop-down list, and then select the **Copy to clipboard** icon.
49
51
50
52

51
53
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.
54
+
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.
53
55
54
56
The following example shows the response in the browser:
55
57
56
58

57
59
58
60
The request URL includes a key that is required, by default, to access your function over HTTP.
59
61
60
-
1. When your function runs, trace information is written to the logs. To see the trace output from the previous execution, return to your function in the portal and select the arrow at the bottom of the screen to expand the **Logs**.
62
+
1. When your function runs, trace information is written to the logs. To see the trace output, return to the **Code + Test** page in the portal and expand the **Logs**arrow at the bottom of the page.
61
63
62
64

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
-
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.
13
+
In this quickstart, you learn how to use Visual Studio 2019 to locally create and test a "hello world" HTTP trigger C# function app, which you then publish to Azure.
14
14
15
15

16
16
@@ -32,7 +32,7 @@ Visual Studio creates a project and class that contains boilerplate code for the
32
32
33
33
Expand the capabilities of your function with input and output bindings by applying the appropriate attributes to the method. For more information, see the [Triggers and bindings](functions-dotnet-class-library.md#triggers-and-bindings) section of the [Azure Functions C# developer reference](functions-dotnet-class-library.md).
34
34
35
-
Now that you've created your function project and an HTTP-triggered function, you can test it on your local computer.
35
+
Now that you've created your function project and an HTTP trigger function, you can test it on your local computer.
36
36
37
37
## Run the function locally
38
38
@@ -52,7 +52,7 @@ Before you can publish your project, you must have a function app in your Azure
52
52
53
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.
54
54
55
-
The URL that calls your HTTP triggered function is in the following format:
55
+
The URL that calls your HTTP trigger function is in the following format:
Copy file name to clipboardExpand all lines: includes/functions-vstools-create.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
@@ -5,20 +5,20 @@ services: functions
5
5
author: ggailey777
6
6
ms.service: azure-functions
7
7
ms.topic: include
8
-
ms.date: 03/06/2020
8
+
ms.date: 03/26/2020
9
9
ms.author: glenga
10
10
ms.custom: include file
11
11
---
12
12
13
13
The Azure Functions project template in Visual Studio creates a project that you can publish to a function app in Azure. You can use a function app to group functions as a logical unit for easier management, deployment, scaling, and sharing of resources.
14
14
15
-
1.In Visual Studio, on the **File**menu, select**New** > **Project**.
15
+
1.From the Visual Studio menu, select **File**>**New** > **Project**.
16
16
17
-
1. In **Create a new project**, enter *functions* in the search box, and then choose the **Azure Functions** template.
17
+
1. In **Create a new project**, enter *functions* in the search box, choose the **Azure Functions** template, and then select **Next**.
18
18
19
19
1. In **Configure your new project**, enter a **Project name** for your project, and then select **Create**. The function app name must be valid as a C# namespace, so don't use underscores, hyphens, or any other nonalphanumeric characters.
20
20
21
-
1. For the **New Project - <your project name>** settings, use the values in the following table:
21
+
1. For the **Create a new Azure Function Application** settings, use the values in the following table:
@@ -33,4 +33,4 @@ The Azure Functions project template in Visual Studio creates a project that you
33
33
34
34
Make sure you set the **Access rights** to **Anonymous**. If you choose the default level of **Function**, you're required to present the [function key](../articles/azure-functions/functions-bindings-http-webhook-trigger.md#authorization-keys) in requests to access your function endpoint.
35
35
36
-
1. Select **OK** to create the function project and HTTP-triggered function.
36
+
1. Select **Create** to create the function project and HTTP trigger function.
|**Azure Function App**| Create a function app in an Azure cloud environment. |
20
-
|**Create new**| A new function app, with related resources, is created in Azure. <br/>If you choose **Select Existing**, all files in the existing function app in Azure are overwritten by files from the local project. Use this option only when you republish updates to an existing function app. |
19
+
|**Azure Functions Consumption Plan**| Create a function app in an Azure cloud environment that runs in a [Consumption plan](../articles/azure-functions/functions-scale.md#consumption-plan). When you use a 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 a Consumption plan, you must manage the [scaling of your function app](../articles/azure-functions/functions-scale.md).|
20
+
|**Create New**| A new function app, with related resources, is created in Azure. <br/>If you choose **Select Existing**, all files in the existing function app in Azure are overwritten by files from the local project. Use this option only when you republish updates to an existing function app. |
21
21
|**Run from package file**| Your function app is deployed using [Zip Deploy](../articles/azure-functions/functions-deployment-technologies.md#zip-deploy) with [Run-From-Package](../articles/azure-functions/run-functions-from-deployment-package.md) mode enabled. This deployment, which results in better performance, is the recommended way of running your functions. <br/>If you don't use this option, make sure to stop your function app project from running locally before you publish to Azure. |
22
22
23
23

24
24
25
25
26
-
3. Select **Publish**. If you haven't already signed-in to your Azure account from Visual Studio, select **Sign-in**. You can also create a free Azure account.
26
+
3. Select **Create Profile**. If you haven't already signed-in to your Azure account from Visual Studio, select **Sign-in**. You can also create a free Azure account.
27
27
28
-
4. In **Azure App Service: Create new**, use the values specified in the following table:
28
+
4. In **App Service: Create new**, use the values specified in the following table:
|**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
-
|**[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
-
|**[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. |
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
+
|**[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). |
36
+
|**Location**| Location of the app service | Choose a **Location** in a [region](https://azure.microsoft.com/regions/) near you or other services your functions access. |
36
37
|**[Azure Storage](../articles/storage/common/storage-account-create.md)**| General-purpose storage account | An Azure Storage account is required by the Functions runtime. Select **New** to configure a general-purpose storage account. You can also choose an existing account that meets the [storage account requirements](../articles/azure-functions/functions-scale.md#storage-account-requirements). |
37
38
38
39

0 commit comments