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
Azure Functions integrates with Azure Logic Apps in the Logic Apps Designer. This integration lets you use the computing power of Functions in orchestrations with other Azure and third-party services.
16
16
17
-
This tutorial shows you how to use Functions with Logic Apps and Cognitive Services on Azure to run sentiment analysis from Twitter posts. An HTTP triggered function categorizes tweets as green, yellow, or red based on the sentiment score. An email is sent when poor sentiment is detected.
17
+
This tutorial shows you how to use Azure Functions with Logic Apps and Cognitive Services on Azure to run sentiment analysis from Twitter posts. An HTTP trigger function categorizes tweets as green, yellow, or red based on the sentiment score. An email is sent when poor sentiment is detected.
18
18
19
19

20
20
@@ -63,7 +63,7 @@ The Cognitive Services APIs are available in Azure as individual resources. Use
63
63
64
64
4. Click **Create** to create your resource.
65
65
66
-
5. Click on **Overview** and copy the value of the **Endpoint** to a text editor. This value is used when creating a connection to the Cognitive Services API.
66
+
5. Click **Overview** and copy the value of the **Endpoint** to a text editor. This value is used when creating a connection to the Cognitive Services API.
@@ -73,21 +73,21 @@ The Cognitive Services APIs are available in Azure as individual resources. Use
73
73
74
74
## Create the function app
75
75
76
-
Functions provides a great way to offload processing tasks in a logic apps workflow. This tutorial uses an HTTP triggered function to process tweet sentiment scores from Cognitive Services and return a category value.
76
+
Azure Functions provides a great way to offload processing tasks in a logic apps workflow. This tutorial uses an HTTP trigger function to process tweet sentiment scores from Cognitive Services and return a category value.
77
77
78
78
[!INCLUDE [Create function app Azure portal](../../includes/functions-create-function-app-portal.md)]
79
79
80
-
## Create an HTTP triggered function
80
+
## Create an HTTP trigger function
81
81
82
-
1.Expand your function app and click the **+**button next to **Functions**. If this is the first function in your function app, select **In-portal**.
82
+
1.From the left menu of the **Functions**window, select **Functions**, then select **Add** from the top menu.
83
83
84
-

84
+
2. From the **New Function** window, select **HTTP trigger**.
85
85
86
-
2. Next, select **Webhook + API** and click **Create**.

88
+
3. From the **New Function** page, select **Create Function**.
89
89
90
-
3. Replace the contents of the `run.csx` file with the following code, then click**Save**:
90
+
4. In your new HTTP trigger function, select **Code + Test** from the left menu, replace the contents of the `run.csx` file with the following code, and then select**Save**:
91
91
92
92
```csharp
93
93
#r"Newtonsoft.Json"
@@ -122,11 +122,12 @@ Functions provides a great way to offload processing tasks in a logic apps workf
122
122
:newBadRequestObjectResult("Please pass a value on the query string or in the request body");
4. Totestthefunction, click**Test**atthefarrighttoexpandtheTesttab. Typeavalueof `0.2` for the **Request body**, and then click **Run**. A value of **RED** is returned in the body of the response.
@@ -214,7 +215,7 @@ Now, your function is triggered when a sentiment score is sent from the logic ap
214
215
215
216
## Add email notifications
216
217
217
-
Thelastpartoftheworkflowistotriggeranemail when the sentiment is scored as _RED_. This topic uses an Outlook.com connector. You can perform similar steps to use a Gmail or Office 365 Outlook connector.
218
+
Thelastpartoftheworkflowistotriggeranemail when the sentiment is scored as _RED_. This article uses an Outlook.com connector. You can perform similar steps to use a Gmail or Office 365 Outlook connector.
@@ -276,7 +277,7 @@ Now that the workflow is complete, you can enable the logic app and see the func
276
277
> [!IMPORTANT]
277
278
>Afteryouhavecompletedthistutorial, youshoulddisablethelogicapp. Bydisablingtheapp, youavoidbeingchargedfor executions and using up the transactions in your Cognitive Services API.
278
279
279
-
Now you have seen how easy it is to integrate Functions into a Logic Apps workflow.
280
+
Now you've seen how easy it is to integrate Functions into a Logic Apps workflow.
0 commit comments