Skip to content

Commit 1847c81

Browse files
authored
Merge pull request #102400 from JasonWHowell/branch46757
Update to the retry policy
2 parents 19a6051 + 992e755 commit 1847c81

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

articles/stream-analytics/stream-analytics-with-azure-functions.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
title: Tutorial - Run Azure Functions in Azure Stream Analytics jobs
33
description: "In this tutorial, you learn how to configure Azure Functions as an output sink to Stream Analytics jobs."
44
author: mamccrea
5+
ms.author: mamccrea
56
ms.service: stream-analytics
67
ms.topic: tutorial
78
ms.custom: mvc
8-
ms.date: 06/05/2019
9-
ms.author: mamccrea
10-
ms.reviewer: mamccrea
9+
ms.date: 01/27/2020
1110

1211
#Customer intent: "As an IT admin/developer I want to run Azure Functions with Stream Analytics jobs."
1312
---
@@ -48,7 +47,7 @@ Follow the [Real-time fraud detection](stream-analytics-real-time-fraud-detectio
4847

4948
## Create a function in Azure Functions that can write data to Azure Cache for Redis
5049

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.
5251

5352
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.
5453

@@ -146,7 +145,7 @@ Follow the [Real-time fraud detection](stream-analytics-real-time-fraud-detectio
146145
|Import option| You can use the function from the current subscription, or provide the settings manually if the function is located in another subscription. |
147146
|Function App| Name of your Functions app. |
148147
|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).|
150149
|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.|
151150
|Key|Allows you to use a function from another subscription. Provide the key value to access your function. This property is optional.|
152151

@@ -184,13 +183,10 @@ Follow the [Real-time fraud detection](stream-analytics-real-time-fraud-detectio
184183
This command should print the value for the specified key:
185184

186185
![Screenshot of Azure Cache for Redis output](./media/stream-analytics-with-azure-functions/image5.png)
187-
186+
188187
## 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:
190188

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).
194190

195191
## Known issues
196192

@@ -200,14 +196,14 @@ The use of [Http routing](https://docs.microsoft.com/sandbox/functions-recipes/r
200196

201197
## Clean up resources
202198

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:
204200

205201
1. From the left-hand menu in the Azure portal, click **Resource groups** and then click the name of the resource you created.
206202
2. On your resource group page, click **Delete**, type the name of the resource to delete in the text box, and then click **Delete**.
207203

208204
## Next steps
209205

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:
211207

212208
> [!div class="nextstepaction"]
213209
> [Run JavaScript user-defined functions within Stream Analytics jobs](stream-analytics-javascript-user-defined-functions.md)

0 commit comments

Comments
 (0)