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/stream-analytics/stream-analytics-with-azure-functions.md
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,11 @@
2
2
title: Tutorial - Run Azure Functions in Azure Stream Analytics jobs
3
3
description: "In this tutorial, you learn how to configure Azure Functions as an output sink to Stream Analytics jobs."
4
4
author: mamccrea
5
+
ms.author: mamccrea
5
6
ms.service: stream-analytics
6
7
ms.topic: tutorial
7
8
ms.custom: mvc
8
-
ms.date: 06/05/2019
9
-
ms.author: mamccrea
10
-
ms.reviewer: mamccrea
9
+
ms.date: 01/27/2020
11
10
12
11
#Customer intent: "As an IT admin/developer I want to run Azure Functions with Stream Analytics jobs."
13
12
---
@@ -48,7 +47,7 @@ Follow the [Real-time fraud detection](stream-analytics-real-time-fraud-detectio
48
47
49
48
## Create a function in Azure Functions that can write data to Azure Cache for Redis
50
49
51
-
1. See the [Create a function app](../azure-functions/functions-create-first-azure-function.md#create-a-function-app) section of the Functions documentation. This walks you through how to create a function app and an [HTTP-triggered function in Azure Functions](../azure-functions/functions-create-first-azure-function.md#create-function), by using the CSharp language.
50
+
1. See the [Create a function app](../azure-functions/functions-create-first-azure-function.md#create-a-function-app) section of the Functions documentation. This section walks you through how to create a function app and an [HTTP-triggered function in Azure Functions](../azure-functions/functions-create-first-azure-function.md#create-function), by using the CSharp language.
52
51
53
52
2. Browse to the **run.csx** function. Update it with the following code. Replace **"\<your Azure Cache for Redis connection string goes here\>"** with the Azure Cache for Redis primary connection string that you retrieved in the previous section.
54
53
@@ -146,7 +145,7 @@ Follow the [Real-time fraud detection](stream-analytics-real-time-fraud-detectio
146
145
|Import option| You can use the function from the current subscription, or provide the settings manually if the function is located in another subscription. |
147
146
|Function App| Name of your Functions app. |
148
147
|Function| Name of the function in your Functions app (name of your run.csx function).|
149
-
|Max Batch Size|Sets the maximum size for each output batch which is sent to your function in bytes. By default, this value is set to 262,144 bytes (256 KB).|
148
+
|Max Batch Size|Sets the maximum size for each output batch, which is sent to your function in bytes. By default, this value is set to 262,144 bytes (256 KB).|
150
149
|Max Batch Count|Specifies the maximum number of events in each batch that is sent to the function. The default value is 100. This property is optional.|
151
150
|Key|Allows you to use a function from another subscription. Provide the key value to access your function. This property is optional.|
152
151
@@ -184,13 +183,10 @@ Follow the [Real-time fraud detection](stream-analytics-real-time-fraud-detectio
184
183
This command should print the value for the specified key:
185
184
186
185

187
-
186
+
188
187
## Error handling and retries
189
-
In the event of a failure while sending events to Azure Functions, Stream Analytics retries to successfully complete the operation. However, there are some failures for which retries are not attempted and they are as follows:
190
188
191
-
1. HttpRequestExceptions
192
-
2. Request Entity Too Large (Http error code 413)
193
-
3. ApplicationExceptions
189
+
If a failure occurs while sending events to Azure Functions, Stream Analytics retries most operations. All http exceptions are retried until success with the exception of http error 413 (entity too large). An entity too large error is treated as a data error that is subjected to the [retry or drop policy](stream-analytics-output-error-policy.md).
194
190
195
191
## Known issues
196
192
@@ -200,14 +196,14 @@ The use of [Http routing](https://docs.microsoft.com/sandbox/functions-recipes/r
200
196
201
197
## Clean up resources
202
198
203
-
When no longer needed, delete the resource group, the streaming job, and all related resources. Deleting the job avoids billing the streaming units consumed by the job. If you're planning to use the job in future, you can stop it and re-start it later when you need. If you are not going to continue to use this job, delete all resources created by this quickstart by using the following steps:
199
+
When no longer needed, delete the resource group, the streaming job, and all related resources. Deleting the job avoids billing the streaming units consumed by the job. If you're planning to use the job in future, you can stop it and restart it later when you need. If you are not going to continue to use this job, delete all resources created by this quickstart by using the following steps:
204
200
205
201
1. From the left-hand menu in the Azure portal, click **Resource groups** and then click the name of the resource you created.
206
202
2. On your resource group page, click **Delete**, type the name of the resource to delete in the text box, and then click **Delete**.
207
203
208
204
## Next steps
209
205
210
-
In this tutorial, you have create a simple Stream Analytics job, that runs an Azure Function, to learn more about Stream Analytics jobs, continue to the next tutorial:
206
+
In this tutorial, you have created a simple Stream Analytics job, that runs an Azure Function. To learn more about Stream Analytics jobs, continue to the next tutorial:
211
207
212
208
> [!div class="nextstepaction"]
213
209
> [Run JavaScript user-defined functions within Stream Analytics jobs](stream-analytics-javascript-user-defined-functions.md)
0 commit comments