Skip to content

Commit 4dd4951

Browse files
authored
Merge pull request #109256 from dksimpson/DKS-1697055-1
Functions update for portal UX refresh - batch 1
2 parents 5bd2714 + c1baad6 commit 4dd4951

14 files changed

+31
-28
lines changed

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

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create your first function in the Azure portal
33
description: Learn how to create your first Azure Function for serverless execution using the Azure portal.
44
ms.assetid: 96cf87b9-8db6-41a8-863a-abb828e3d06d
55
ms.topic: quickstart
6-
ms.date: 03/06/2020
6+
ms.date: 03/26/2020
77
ms.custom: mvc, devcenter, cc996988-fb4f-47
88
---
99

@@ -29,35 +29,37 @@ Next, create a function in the new function app.
2929

3030
## <a name="create-function"></a>Create an HTTP triggered function
3131

32-
1. Expand your new function app, select the **+** button next to **Functions**, choose **In-portal**, and then select **Continue**.
32+
1. From the left menu of the **Functions** window, select **Functions**, then select **Add** from the top menu.
33+
34+
1. From the **New Function** window, select **Http trigger**.
3335

34-
![Functions quickstart for choosing a platform.](./media/functions-create-first-azure-function/function-app-quickstart-choose-portal.png)
36+
![Choose HTTP trigger function](./media/functions-create-first-azure-function/function-app-select-http-trigger.png)
3537

36-
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.
3739

38-
![Functions quickstart in the Azure portal.](./media/functions-create-first-azure-function/function-app-quickstart-node-webhook.png)
40+
1. Choose **Anonymous** from the **Authorization level** drop-down list, and then select **Create Function**.
3941

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.
4343

4444
## Test the function
4545

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+
![Select Get function URL](./media/functions-create-first-azure-function/function-app-select-get-function-url.png)
4749

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.
4951

5052
![Copy the function URL from the Azure portal](./media/functions-create-first-azure-function/function-app-develop-tab-testing.png)
5153

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.
5355

5456
The following example shows the response in the browser:
5557

5658
![Function response in the browser.](./media/functions-create-first-azure-function/function-app-browser-testing.png)
5759

5860
The request URL includes a key that is required, by default, to access your function over HTTP.
5961

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.
6163

6264
![Functions log viewer in the Azure portal.](./media/functions-create-first-azure-function/function-view-logs.png)
6365

articles/azure-functions/functions-create-your-first-function-visual-studio.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Quickstart: Create your first function in Azure using Visual Studio"
3-
description: In this quickstart, you learn how to create and publish an HTTP-triggered Azure Function by using Visual Studio.
3+
description: In this quickstart, you learn how to create and publish an HTTP trigger Azure Function by using Visual Studio.
44
ms.assetid: 82db1177-2295-4e39-bd42-763f6082e796
55
ms.topic: quickstart
66
ms.date: 03/06/2020
@@ -10,7 +10,7 @@ ms.custom: mvc, devcenter, vs-azure, 23113853-34f2-4f
1010

1111
Azure Functions lets you run your code in a serverless environment without having to first create a VM or publish a web application.
1212

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.
1414

1515
![Function localhost response in the browser](./media/functions-create-your-first-function-visual-studio/functions-create-your-first-function-visual-studio-browser-local-final.png)
1616

@@ -32,7 +32,7 @@ Visual Studio creates a project and class that contains boilerplate code for the
3232

3333
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).
3434

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.
3636

3737
## Run the function locally
3838

@@ -52,7 +52,7 @@ Before you can publish your project, you must have a function app in your Azure
5252

5353
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.
5454

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:
5656

5757
`http://<APP_NAME>.azurewebsites.net/api/<FUNCTION_NAME>?name=<YOUR_NAME>`
5858

@@ -66,7 +66,7 @@ Before you can publish your project, you must have a function app in your Azure
6666

6767
## Next steps
6868

69-
In this quickstart, you used Visual Studio to create and publish a C# function app in Azure with a simple HTTP triggered function.
69+
In this quickstart, you used Visual Studio to create and publish a C# function app in Azure with a simple HTTP trigger function.
7070

7171
Advance to the next article to learn how to add an Azure Storage queue binding to your function:
7272
> [!div class="nextstepaction"]
-7.6 KB
Loading
19.2 KB
Loading
52.6 KB
Loading
66.7 KB
Loading
-8.7 KB
Loading

includes/functions-vstools-create.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ services: functions
55
author: ggailey777
66
ms.service: azure-functions
77
ms.topic: include
8-
ms.date: 03/06/2020
8+
ms.date: 03/26/2020
99
ms.author: glenga
1010
ms.custom: include file
1111
---
1212

1313
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.
1414

15-
1. In Visual Studio, on the **File** menu, select **New** > **Project**.
15+
1. From the Visual Studio menu, select **File** > **New** > **Project**.
1616

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**.
1818

1919
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.
2020

21-
1. For the **New Project - &lt;your project name&gt;** 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:
2222

2323
| Setting | Value | Description |
2424
| ------------ | ------- |----------------------------------------- |
@@ -33,4 +33,4 @@ The Azure Functions project template in Visual Studio creates a project that you
3333

3434
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.
3535

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.

includes/functions-vstools-publish.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@ ms.custom: include file
1616

1717
| Option | Description |
1818
| ------------ | -------------------------------------------------- |
19-
| **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. |
2121
| **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. |
2222

2323
![Pick a publish target](./media/functions-vstools-publish/functions-visual-studio-publish-profile.png)
2424

2525

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.
2727

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:
2929

3030
| Setting | Value | Description |
3131
| ------------ | ------- | -------------------------------------------------- |
3232
| **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 `-`. |
3333
| **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. |
3637
| **[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). |
3738

3839
![Create App Service dialog](./media/functions-vstools-publish/functions-visual-studio-publish.png)
10.9 KB
Loading

0 commit comments

Comments
 (0)