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-bindings-service-bus-output.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,7 @@ The following table explains the binding configuration properties that you set i
283
283
|**queueName**|**QueueName**|Name of the queue. Set only if sending queue messages, not for a topic.
284
284
|**topicName**|**TopicName**|Name of the topic. Set only if sending topic messages, not for a queue.|
285
285
|**connection**|**Connection**|The name of an app setting that contains the Service Bus connection string to use for this binding. If the app setting name begins with "AzureWebJobs", you can specify only the remainder of the name. For example, if you set `connection` to "MyServiceBus", the Functions runtime looks for an app setting that is named "AzureWebJobsMyServiceBus". If you leave `connection` empty, the Functions runtime uses the default Service Bus connection string in the app setting that is named "AzureWebJobsServiceBus".<br><br>To obtain a connection string, follow the steps shown at [Get the management credentials](../service-bus-messaging/service-bus-quickstart-portal.md#get-the-connection-string). The connection string must be for a Service Bus namespace, not limited to a specific queue or topic.|
286
-
|**accessRights**|**Access**|Access rights for the connection string. Available values are `manage` and `listen`. The default is `manage`, which indicates that the `connection` has the **Manage** permission. If you use a connection string that does not have the **Manage** permission, set `accessRights` to "listen". Otherwise, the Functions runtime might fail trying to do operations that require manage rights. In Azure Functions version 2.x and higher, this property is not available because the latest version of the Service Bus SDK doesn't support manage operations.|
286
+
|**accessRights** (v1 only)|**Access**|Access rights for the connection string. Available values are `manage` and `listen`. The default is `manage`, which indicates that the `connection` has the **Manage** permission. If you use a connection string that does not have the **Manage** permission, set `accessRights` to "listen". Otherwise, the Functions runtime might fail trying to do operations that require manage rights. In Azure Functions version 2.x and higher, this property is not available because the latest version of the Service Bus SDK doesn't support manage operations.|
287
287
288
288
[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]
289
289
@@ -362,9 +362,9 @@ This section describes the global configuration settings available for this bind
362
362
"serviceBus": {
363
363
"prefetchCount": 100,
364
364
"messageHandlerOptions": {
365
-
"autoComplete": false,
365
+
"autoComplete": true,
366
366
"maxConcurrentCalls": 32,
367
-
"maxAutoRenewDuration": "00:55:00"
367
+
"maxAutoRenewDuration": "00:05:00"
368
368
},
369
369
"sessionHandlerOptions": {
370
370
"autoComplete": false,
@@ -376,13 +376,15 @@ This section describes the global configuration settings available for this bind
376
376
}
377
377
}
378
378
```
379
+
If you have `isSessionsEnabled` set to `true`, the `sessionHandlerOptions` will be honored. If you have `isSessionsEnabled` set to `false`, the `messageHandlerOptions` will be honored.
379
380
380
381
|Property |Default | Description |
381
382
|---------|---------|---------|
382
383
|prefetchCount|0|Gets or sets the number of messages that the message receiver can simultaneously request.|
383
384
|maxAutoRenewDuration|00:05:00|The maximum duration within which the message lock will be renewed automatically.|
384
-
|autoComplete|true|Whether the trigger should immediately mark the message as complete (autocomplete) or wait for function to exit successfully to call complete.|
385
-
|maxConcurrentCalls|16|The maximum number of concurrent calls to the callback that the message pump should initiate. By default, the Functions runtime processes multiple messages concurrently. To direct the runtime to process only a single queue or topic message at a time, set `maxConcurrentCalls` to 1. |
385
+
|autoComplete|true|Whether the trigger should automatically call complete after processing, or if the function code will manually call complete.|
386
+
|maxConcurrentCalls|16|The maximum number of concurrent calls to the callback that the message pump should initiate per scaled instance. By default, the Functions runtime processes multiple messages concurrently.|
387
+
|maxConcurrentSessions|2000|The maximum number of sessions that can be handled concurrently per scaled instance.|
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-service-bus-trigger.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,8 @@ ms.author: cshoe
11
11
12
12
# Azure Service Bus trigger for Azure Functions
13
13
14
-
Use the Service Bus trigger to respond to messages from a Service Bus queue or topic.
14
+
Use the Service Bus trigger to respond to messages from a Service Bus queue or topic.
15
+
Starting with extension version 3.1.0, you can trigger on a session-enabled queue or topic.
15
16
16
17
For information on setup and configuration details, see the [overview](functions-bindings-service-bus-output.md).
17
18
@@ -219,7 +220,7 @@ In [C# class libraries](functions-dotnet-class-library.md), use the following at
219
220
}
220
221
```
221
222
222
-
You can set the `Connection` property to specify the name of an app setting that contains the Service Bus connection string to use, as shown in the following example:
223
+
Since the `Connection` property isn't defined, Functions looks for an app setting named `AzureWebJobsServiceBus`, which is the default name for the Service Bus connection string. You can also set the `Connection` property to specify the name of an application setting that contains the Service Bus connection string to use, as shown in the following example:
223
224
224
225
```csharp
225
226
[FunctionName("ServiceBusQueueTriggerCSharp")]
@@ -353,21 +354,24 @@ The `maxAutoRenewDuration` is configurable in *host.json*, which maps to [OnMess
0 commit comments