Skip to content

Commit 84a5965

Browse files
authored
Merge pull request #198179 from poojapoojari/PP-05132022-HowTo-articles-1940835
[Freshness] US-1940835: Test and refresh Functions articles - How To's
2 parents 82ef4d2 + 6ef39c7 commit 84a5965

File tree

37 files changed

+316
-287
lines changed

37 files changed

+316
-287
lines changed

articles/azure-functions/configure-monitoring.md

Lines changed: 86 additions & 79 deletions
Large diffs are not rendered by default.

articles/azure-functions/functions-create-function-app-portal.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
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.topic: how-to
5-
ms.date: 03/26/2020
6-
ms.custom: "devx-track-csharp, mvc, devcenter, cc996988-fb4f-47"
5+
ms.date: 06/10/2022
6+
ms.custom: "devx-track-csharp, mvc, devcenter, cc996988-fb4f-47, devdivchpfy22"
77
---
88

99
# Create your first function in the Azure portal
1010

1111
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 trigger function in the Azure portal.
1212

13-
[!INCLUDE [functions-in-portal-editing-note](../../includes/functions-in-portal-editing-note.md)]
13+
[!INCLUDE [functions-in-portal-editing-note](../../includes/functions-in-portal-editing-note.md)]
1414

15-
We instead recommend that you [develop your functions locally](functions-develop-local.md) and publish to a function app in Azure.
15+
We recommend that you [develop your functions locally](functions-develop-local.md) and publish to a function app in Azure.
1616
Use one of the following links to get started with your chosen local development environment and language:
1717

1818
| Visual Studio Code | Terminal/command prompt | Visual Studio |
@@ -21,7 +21,7 @@ Use one of the following links to get started with your chosen local development
2121

2222
[!INCLUDE [functions-portal-language-support](../../includes/functions-portal-language-support.md)]
2323

24-
## Prerequisites
24+
## Prerequisites
2525

2626
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2727

@@ -39,33 +39,33 @@ Next, create a function in the new function app.
3939

4040
## <a name="create-function"></a>Create an HTTP trigger function
4141

42-
1. From the left menu of the **Function App** window, select **Functions**, then select **Create** from the top menu.
43-
44-
1. From the **Create Function** window, leave the Development environment property has **Develop in portal** and select the **HTTP trigger** template.
42+
1. From the left menu of the **Function App** window, select **Functions**, and then select **Create** from the top menu.
4543

46-
![Choose HTTP trigger function](./media/functions-create-first-azure-function/function-app-select-http-trigger.png)
44+
1. From the **Create Function** window, leave the **Development environment** property as **Develop in portal**, and then select the **HTTP trigger** template.
4745

48-
1. Under **Template details** use `HttpExample` for **New Function**, choose **Anonymous** from the **[Authorization level](functions-bindings-http-webhook-trigger.md#authorization-keys)** drop-down list, and then select **Create**.
46+
:::image type="content" source="./media/functions-create-first-azure-function/function-app-http-trigger.png" alt-text="Screenshot of HTTP trigger function.":::
47+
48+
1. Under **Template details** use `HttpExample` for **New Function**, select **Anonymous** from the **[Authorization level](functions-bindings-http-webhook-trigger.md#authorization-keys)** drop-down list, and then select **Create**.
4949

5050
Azure creates the HTTP trigger function. Now, you can run the new function by sending an HTTP request.
5151

5252
## Test the function
5353

54-
1. In your new HTTP trigger function, select **Code + Test** from the left menu, then select **Get function URL** from the top menu.
54+
1. In your new HTTP trigger function, select **Code + Test** from the left menu, and then select **Get function URL** from the top menu.
5555

56-
![Select Get function URL](./media/functions-create-first-azure-function/function-app-select-get-function-url.png)
56+
:::image type="content" source="./media/functions-create-first-azure-function/function-app-http-example-get-function-url.png" alt-text="Screenshot of Get function URL window.":::
5757

58-
1. In the **Get function URL** dialog box, select **default** from the drop-down list, and then select the **Copy to clipboard** icon.
58+
1. In the **Get function URL** dialog, select **default** from the drop-down list, and then select the **Copy to clipboard** icon.
5959

60-
![Copy the function URL from the Azure portal](./media/functions-create-first-azure-function/function-app-develop-tab-testing.png)
60+
:::image type="content" source="./media/functions-create-first-azure-function/function-app-develop-tab-testing.png" alt-text="Screenshot of Copy the function URL window from the Azure portal.":::
6161

62-
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. The browser should display a response message that echoes back your query string value.
62+
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. The browser must display a response message that echoes back your query string value.
6363

64-
If the request URL included an [access key](functions-bindings-http-webhook-trigger.md#authorization-keys) (`?code=...`), it means you choose **Function** instead of **Anonymous** access level when creating the function. In this case, you should instead append `&name=<your_name>`.
64+
If the request URL included an [access key](functions-bindings-http-webhook-trigger.md#authorization-keys) (`?code=...`), it means you selected **Function** instead of **Anonymous** access level when creating the function. In this case, you must instead append `&name=<your_name>`.
6565

66-
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. Call your function again to see trace output written to the logs.
66+
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. Call your function again to see the trace output written to the logs.
6767

68-
:::image type="content" source="media/functions-create-first-azure-function/function-view-logs.png" alt-text="Functions log viewer in the Azure portal":::
68+
:::image type="content" source="media/functions-create-first-azure-function/function-app-log-view.png" alt-text="Screenshot of Functions log viewer in the Azure portal.":::
6969

7070
## Clean up resources
7171

0 commit comments

Comments
 (0)