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-cosmosdb-v2-input.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,7 +246,7 @@ The following example shows a [C# function](functions-dotnet-class-library.md) t
246
246
The example shows how to use a binding expression in the `SqlQuery` parameter. You can pass route data to the `SqlQuery` parameter as shown, but currently [you can't pass query string values](https://github.com/Azure/azure-functions-host/issues/2554#issuecomment-392084583).
247
247
248
248
> [!NOTE]
249
-
> If you need to query by just the ID, it is recommended to use a look up, like the [previous examples](#http-trigger-look-up-id-from-query-string-c), as it will consume less [request units](/azure/cosmos-db/request-units). Point read operations (GET) are [more efficient](/azure/cosmos-db/optimize-cost-reads-writes) than queries by ID.
249
+
> If you need to query by just the ID, it is recommended to use a lookup, like the [previous examples](#http-trigger-look-up-id-from-query-string-c), as it consumes less [request units](/azure/cosmos-db/request-units). Point read operations (GET) are [more efficient](/azure/cosmos-db/optimize-cost-reads-writes) than queries by ID.
250
250
>
251
251
252
252
```cs
@@ -635,7 +635,7 @@ public class DocByIdFromRoute {
635
635
The following example shows a Java function that retrieves a single document. The function is triggered by an HTTP request that uses a route parameter to specify the ID to look up. That ID is used to retrieve a document from the specified database and collection, converting the result set to a `ToDoItem[]`, since many documents may be returned, depending on the query criteria.
636
636
637
637
> [!NOTE]
638
-
> If you need to query by just the ID, it is recommended to use a look up, like the [previous examples](#http-trigger-look-up-id-from-query-string---pojo-parameter-java), as it will consume less [request units](/azure/cosmos-db/request-units). Point read operations (GET) are [more efficient](/azure/cosmos-db/optimize-cost-reads-writes) than queries by ID.
638
+
> If you need to query by just the ID, it is recommended to use a lookup, like the [previous examples](#http-trigger-look-up-id-from-query-string---pojo-parameter-java), as it consumes less [request units](/azure/cosmos-db/request-units). Point read operations (GET) are [more efficient](/azure/cosmos-db/optimize-cost-reads-writes) than queries by ID.
639
639
>
640
640
641
641
```java
@@ -1260,8 +1260,8 @@ This section contains the following examples that read a single document by spec
1260
1260
1261
1261
The examples depend on whether you use the [v1 or v2 Python programming model](functions-reference-python.md).
1262
1262
1263
-
### Using SDK-Type Bindings for CosmosDB (Preview)
1264
-
This example uses SDK types to directly access the underlying [`CosmosClient`](https://github.com/Azure/azure-functions-python-extensions/blob/dev/azurefunctions-extensions-bindings-cosmosdb/samples/cosmosdb_samples_cosmosclient/function_app.py) object provided by the CosmosDB input binding:
1263
+
### Using SDK-Type Bindings for Cosmos DB (Preview)
1264
+
This example uses SDK types to directly access the underlying [`CosmosClient`](https://github.com/Azure/azure-functions-python-extensions/blob/dev/azurefunctions-extensions-bindings-cosmosdb/samples/cosmosdb_samples_cosmosclient/function_app.py) object provided by the Cosmos DB input binding:
1265
1265
1266
1266
The function loops through all the databases and logs their IDs.
1267
1267
```python
@@ -1710,7 +1710,7 @@ Updates to documents are not made automatically upon function exit. To update do
1710
1710
::: zone-end
1711
1711
::: zone pivot="programming-language-python"
1712
1712
Data is made available to the function via a `DocumentList` parameter. Changes made to the document are not automatically persisted.
1713
-
Functions also supports Python SDK type bindings for Azure Cosmos, which lets you work with data using these underlying SDK types:
1713
+
Functions also support Python SDK type bindings for Azure Cosmos, which lets you work with data using these underlying SDK types:
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-service-bus-trigger.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -394,15 +394,15 @@ Both [in-process](functions-dotnet-class-library.md) and [isolated worker proces
394
394
395
395
The following table explains the properties you can set using this trigger attribute:
396
396
397
-
| Property |Description|
398
-
| --- |---|
399
-
|**QueueName**|Name of the queue to monitor. Set only if monitoring a queue, not for a topic. |
400
-
|**TopicName**|Name of the topic to monitor. Set only if monitoring a topic, not for a queue.|
401
-
|**SubscriptionName**|Name of the subscription to monitor. Set only if monitoring a topic, not for a queue.|
402
-
|**Connection**| The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections).|
403
-
|**IsBatched**| Messages are delivered in batches. Requires an array or collection type. |
404
-
|**IsSessionsEnabled**|`true` if connecting to a [session-aware](../service-bus-messaging/message-sessions.md) queue or subscription. `false` otherwise, which is the default value.|
405
-
|**AutoCompleteMessages**|`true` if the trigger should automatically complete the message after a successful invocation. `false` if it should not, such as when you are [handling message settlement in code](#usage). If not explicitly set, the behavior will be based on the [`autoCompleteMessages` configuration in `host.json`][host-json-autoComplete].|
|**QueueName**|Name of the queue to monitor. Set only if monitoring a queue, not for a topic.|
400
+
|**TopicName**|Name of the topic to monitor. Set only if monitoring a topic, not for a queue.|
401
+
|**SubscriptionName**|Name of the subscription to monitor. Set only if monitoring a topic, not for a queue.|
402
+
|**Connection**| The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections).|
403
+
|**IsBatched**| Messages are delivered in batches. Requires an array or collection type. |
404
+
|**IsSessionsEnabled**|`true` if connecting to a [session-aware](../service-bus-messaging/message-sessions.md) queue or subscription. `false` otherwise, which is the default value.|
405
+
|**AutoCompleteMessages**|`true` if the trigger should automatically complete the message after a successful invocation. `false` if it should not, such as when you are [handling message settlement in code](#usage). If not explicitly set, the behavior is based on the [`autoCompleteMessages` configuration in `host.json`][host-json-autoComplete].|
406
406
407
407
# [In-process model](#tab/in-process)
408
408
@@ -417,7 +417,7 @@ The following table explains the properties you can set using this trigger attri
417
417
|**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.|
418
418
|**IsBatched**| Messages are delivered in batches. Requires an array or collection type. |
419
419
|**IsSessionsEnabled**|`true` if connecting to a [session-aware](../service-bus-messaging/message-sessions.md) queue or subscription. `false` otherwise, which is the default value.|
420
-
|**AutoComplete**|`true` Whether the trigger should automatically call complete after processing, or if the function code will manually call complete.<br/><br/>If set to `true`, the trigger completes the message automatically if the function execution completes successfully, and abandons the message otherwise.<br/><br/>When set to `false`, you are responsible for calling [ServiceBusReceiver](/dotnet/api/azure.messaging.servicebus.servicebusreceiver) methods to complete, abandon, or deadletter the message, session, or batch. When an exception is thrown (and none of the `ServiceBusReceiver` methods are called), then the lock remains. Once the lock expires, the message is re-queued with the `DeliveryCount` incremented and the lock is automatically renewed. |
420
+
|**AutoComplete**|`true` Whether the trigger should automatically call complete after processing, or if the function code will manually call complete.<br/><br/>If set to `true`, the trigger completes the message automatically if the function execution completes successfully, and abandons the message otherwise.<br/><br/>When set to `false`, you are responsible for calling [ServiceBusReceiver](/dotnet/api/azure.messaging.servicebus.servicebusreceiver) methods to complete, abandon, or deadletter the message, session, or batch. When an exception is thrown (and none of the `ServiceBusReceiver` methods are called), then the lock remains. Once the lock expires, the message is requeued with the `DeliveryCount` incremented and the lock is automatically renewed. |
421
421
422
422
---
423
423
[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]
@@ -481,7 +481,7 @@ The following table explains the properties that you can set on the `options` ob
481
481
|**connection**| The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections).|
482
482
|**accessRights**| 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.|
483
483
|**isSessionsEnabled**|`true` if connecting to a [session-aware](../service-bus-messaging/message-sessions.md) queue or subscription. `false` otherwise, which is the default value.|
484
-
|**autoComplete**| Must be `true` for non-C# functions, which means that the trigger should either automatically call complete after processing, or the function code manually calls complete.<br/><br/>When set to `true`, the trigger completes the message automatically if the function execution completes successfully, and abandons the message otherwise.<br/><br/>Exceptions in the function results in the runtime calls`abandonAsync` in the background. If no exception occurs, then `completeAsync` is called in the background. This property is available only in Azure Functions 2.x and higher. |
484
+
|**autoComplete**| Must be `true` for non-C# functions, which means that the trigger should either automatically call complete after processing, or the function code manually calls complete.<br/><br/>When set to `true`, the trigger completes the message automatically if the function execution completes successfully, and abandons the message otherwise.<br/><br/>Exceptions in the function results in the runtime call`abandonAsync` in the background. If no exception occurs, then `completeAsync` is called in the background. This property is available only in Azure Functions 2.x and higher. |
485
485
486
486
# [Model v3](#tab/nodejs-v3)
487
487
@@ -498,7 +498,7 @@ The following table explains the binding configuration properties that you set i
498
498
|**connection**| The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections).|
499
499
|**accessRights**| 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.|
500
500
|**isSessionsEnabled**|`true` if connecting to a [session-aware](../service-bus-messaging/message-sessions.md) queue or subscription. `false` otherwise, which is the default value.|
501
-
|**autoComplete**| Must be `true` for non-C# functions, which means that the trigger should either automatically call complete after processing, or the function code manually calls complete.<br/><br/>When set to `true`, the trigger completes the message automatically if the function execution completes successfully, and abandons the message otherwise.<br/><br/>Exceptions in the function results in the runtime calls`abandonAsync` in the background. If no exception occurs, then `completeAsync` is called in the background. This property is available only in Azure Functions 2.x and higher. |
501
+
|**autoComplete**| Must be `true` for non-C# functions, which means that the trigger should either automatically call complete after processing, or the function code manually calls complete.<br/><br/>When set to `true`, the trigger completes the message automatically if the function execution completes successfully, and abandons the message otherwise.<br/><br/>Exceptions in the function results in the runtime call`abandonAsync` in the background. If no exception occurs, then `completeAsync` is called in the background. This property is available only in Azure Functions 2.x and higher. |
502
502
503
503
---
504
504
@@ -520,7 +520,7 @@ The following table explains the binding configuration properties that you set i
520
520
|**connection**| The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections).|
521
521
|**accessRights**| 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.|
522
522
|**isSessionsEnabled**|`true` if connecting to a [session-aware](../service-bus-messaging/message-sessions.md) queue or subscription. `false` otherwise, which is the default value.|
523
-
|**autoComplete**| Must be `true` for non-C# functions, which means that the trigger should either automatically call complete after processing, or the function code manually calls complete.<br/><br/>When set to `true`, the trigger completes the message automatically if the function execution completes successfully, and abandons the message otherwise.<br/><br/>Exceptions in the function results in the runtime calls`abandonAsync` in the background. If no exception occurs, then `completeAsync` is called in the background. This property is available only in Azure Functions 2.x and higher. |
523
+
|**autoComplete**| Must be `true` for non-C# functions, which means that the trigger should either automatically call complete after processing, or the function code manually calls complete.<br/><br/>When set to `true`, the trigger completes the message automatically if the function execution completes successfully, and abandons the message otherwise.<br/><br/>Exceptions in the function results in the runtime call`abandonAsync` in the background. If no exception occurs, then `completeAsync` is called in the background. This property is available only in Azure Functions 2.x and higher. |
524
524
525
525
[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]
526
526
@@ -613,7 +613,7 @@ The Service Bus instance is available via the parameter configured in the *funct
613
613
::: zone pivot="programming-language-python"
614
614
The queue message is available to the function via a parameter typed as `func.ServiceBusMessage`. The Service Bus message is passed into the function as either a string or JSON object.
615
615
616
-
Functions also supports Python SDK type bindings for Azure Service Bus, which lets you work with data using these underlying SDK types:
616
+
Functions also support Python SDK type bindings for Azure Service Bus, which lets you work with data using these underlying SDK types:
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-storage-blob-input.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -476,7 +476,7 @@ Access the blob data via a parameter that matches the name designated by binding
476
476
::: zone pivot="programming-language-python"
477
477
Access blob data via the parameter typed as [InputStream](/python/api/azure-functions/azure.functions.inputstream). Refer to the [input example](#example) for details.
478
478
479
-
Functions also supports Python SDK type bindings for Azure Blob storage, which lets you work with blob data using these underlying SDK types:
479
+
Functions also support Python SDK type bindings for Azure Blob storage, which lets you work with blob data using these underlying SDK types:
0 commit comments