Skip to content

Commit 61616e8

Browse files
Merge pull request #112602 from damabe/1697055-damabe9
Update article Azure Functions portal UX refresh: User Story 1697055, Part 9
2 parents 009a392 + 6e1135a commit 61616e8

7 files changed

+24
-18
lines changed

articles/azure-functions/functions-manually-run-non-http.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Use an HTTP request to run a non-HTTP triggered Azure Functions
44
author: craigshoemaker
55

66
ms.topic: article
7-
ms.date: 12/12/2018
7+
ms.date: 04/23/2020
88
ms.author: cshoe
99
---
1010

@@ -33,11 +33,17 @@ You use this request location in Postman along with the function's master key in
3333
3434
## Get the function's master key
3535

36-
Navigate to your function in the Azure portal and click on **Manage** and find the **Host Keys** section. Click on the **Copy** button in the *_master* row to copy the master key to your clipboard.
36+
1. Navigate to your function in the Azure portal and select **Function Keys**. Then, select the function key you want to copy.
3737

38-
![Copy master key from Function Management screen](./media/functions-manually-run-non-http/azure-portal-functions-master-key.png)
38+
:::image type="content" source="./media/functions-manually-run-non-http/azure-portal-functions-master-key.png" alt-text="Locate the master key to copy." border="true":::
3939

40-
After copying the master key, click on the function name to return to the code file window. Next, click on the **Logs** tab. You'll see messages from the function logged here when you manually run the function from Postman.
40+
1. In the **Edit key** section, copy the key value to your clipboard, and then select **OK**.
41+
42+
:::image type="content" source="./media/functions-manually-run-non-http/azure-portal-functions-master-key-copy.png" alt-text="Copy the master key to the clipboard." border="true":::
43+
44+
1. After copying the *_master* key, select **Code + Test**, and then select **Logs**. You'll see messages from the function logged here when you manually run the function from Postman.
45+
46+
:::image type="content" source="./media/functions-manually-run-non-http/azure-portal-function-log.png" alt-text="View the logs to see the master key test results." border="true":::
4147

4248
> [!CAUTION]
4349
> Due to the elevated permissions in your function app granted by the master key, you should not share this key with third parties or distribute it in an application.
@@ -47,27 +53,27 @@ After copying the master key, click on the function name to return to the code f
4753
Open Postman and follow these steps:
4854

4955
1. Enter the **request location in the URL text box**.
50-
2. Ensure the HTTP method is set to **POST**.
51-
3. **Click** on the **Headers** tab.
52-
4. Enter **x-functions-key** as the first **key** and paste the master key (from the clipboard) into the **value** box.
53-
5. Enter **Content-Type** as the second **key** and enter **application/json** as the **value**.
54-
55-
![Postman headers settings](./media/functions-manually-run-non-http/functions-manually-run-non-http-headers.png)
56+
1. Ensure the HTTP method is set to **POST**.
57+
1. Select the **Headers** tab.
58+
1. Type **x-functions-key** as the first key and paste the master key (from the clipboard) as the value.
59+
1. Type **Content-Type** as the second key and type **application/json** as the value.
5660

57-
6. **Click** on the **Body** tab.
58-
7. Enter **{ "input": "test" }** as the body for the request.
61+
:::image type="content" source="./media/functions-manually-run-non-http/functions-manually-run-non-http-headers.png" alt-text="Postman headers settings." border="true":::
5962

60-
![Postman body settings](./media/functions-manually-run-non-http/functions-manually-run-non-http-body.png)
63+
1. Select the **Body** tab.
64+
1. Type **{ "input": "test" }** as the body for the request.
6165

62-
8. Click **Send**.
66+
:::image type="content" source="./media/functions-manually-run-non-http/functions-manually-run-non-http-body.png" alt-text="Postman body settings." border="true":::
6367

64-
![Sending a request with Postman](./media/functions-manually-run-non-http/functions-manually-run-non-http-send.png)
68+
1. Select **Send**.
69+
70+
:::image type="content" source="./media/functions-manually-run-non-http/functions-manually-run-non-http-send.png" alt-text="Send a request with Postman." border="true":::
6571

66-
Postman then reports a status of **202 Accepted**.
72+
Postman then reports a status of **202 Accepted**.
6773

68-
Next, return to your function in the Azure portal. Locate the *Logs* window and you'll see messages coming from the manual call to the function.
74+
1. Next, return to your function in the Azure portal. Review the logs and you'll see messages coming from the manual call to the function.
6975

70-
![Function log results from manual call](./media/functions-manually-run-non-http/azure-portal-function-log.png)
76+
:::image type="content" source="./media/functions-manually-run-non-http/azure-portal-functions-master-key-logs.png" alt-text="View the logs to see the master key test results." border="true":::
7177

7278
## Next steps
7379

14 KB
Loading
15.5 KB
Loading
85.1 KB
Loading
-17.4 KB
Loading
8.13 KB
Loading
9.58 KB
Loading

0 commit comments

Comments
 (0)