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
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-manually-run-non-http.md
+24-18Lines changed: 24 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Use an HTTP request to run a non-HTTP triggered Azure Functions
4
4
author: craigshoemaker
5
5
6
6
ms.topic: article
7
-
ms.date: 12/12/2018
7
+
ms.date: 04/23/2020
8
8
ms.author: cshoe
9
9
---
10
10
@@ -33,11 +33,17 @@ You use this request location in Postman along with the function's master key in
33
33
34
34
## Get the function's master key
35
35
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.
37
37
38
-

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":::
39
39
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":::
41
47
42
48
> [!CAUTION]
43
49
> 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
47
53
Open Postman and follow these steps:
48
54
49
55
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**.

63
+
1. Select the **Body** tab.
64
+
1. Type **{ "input": "test" }** as the body for the request.
61
65
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":::
63
67
64
-

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":::
65
71
66
-
Postman then reports a status of **202 Accepted**.
72
+
Postman then reports a status of **202 Accepted**.
67
73
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.
69
75
70
-

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":::
0 commit comments