Skip to content

Commit c662ca1

Browse files
committed
adding configs
1 parent 57ae3c0 commit c662ca1

3 files changed

+5
-1
lines changed

articles/azure-functions/functions-bindings-cosmosdb-v2-input.md

+1
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,7 @@ The following table explains the binding configuration properties that you set i
14341434
|**sqlQuery** |**SqlQuery** | An Azure Cosmos DB SQL query used for retrieving multiple documents. The property supports runtime bindings, as in this example: `SELECT * FROM c where c.departmentId = {departmentId}`. Don't set both the `id` and `sqlQuery` properties. If you don't set either one, the entire collection is retrieved.|
14351435
|**connectionStringSetting** |**ConnectionStringSetting**|The name of the app setting containing your Azure Cosmos DB connection string. |
14361436
|**partitionKey**|**PartitionKey**|Specifies the partition key value for the lookup. May include binding parameters. It is required for lookups in [partitioned](../cosmos-db/partition-data.md#logical-partitions) collections.|
1437+
|**preferredLocations**| **PreferredLocations**| (Optional) Defines preferred locations (regions) for geo-replicated database accounts in the Azure Cosmos DB service. Values should be comma-separated. For example, "East US,South Central US,North Europe". |
14371438

14381439
[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]
14391440

articles/azure-functions/functions-bindings-cosmosdb-v2-output.md

+2
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ The following table explains the binding configuration properties that you set i
569569
|**partitionKey**|**PartitionKey** |When `CreateIfNotExists` is true, it defines the partition key path for the created collection.|
570570
|**collectionThroughput**|**CollectionThroughput**| When `CreateIfNotExists` is true, it defines the [throughput](../cosmos-db/set-throughput.md) of the created collection.|
571571
|**connectionStringSetting** |**ConnectionStringSetting** |The name of the app setting containing your Azure Cosmos DB connection string. |
572+
|**preferredLocations**| **PreferredLocations**| (Optional) Defines preferred locations (regions) for geo-replicated database accounts in the Azure Cosmos DB service. Values should be comma-separated. For example, "East US,South Central US,North Europe". |
573+
|**useMultipleWriteLocations**| **UseMultipleWriteLocations**| (Optional) When set to `true` along with `PreferredLocations`, it can leverage [multi-region writes](../cosmos-db/how-to-manage-database-account.md#configure-multiple-write-regions) in the Azure Cosmos DB service. |
572574

573575
[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]
574576

articles/azure-functions/functions-bindings-cosmosdb-v2-trigger.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ The following table explains the binding configuration properties that you set i
231231
|**leaseRenewInterval**| **LeaseRenewInterval**| (Optional) When set, it defines, in milliseconds, the renew interval for all leases for partitions currently held by an instance. Default is 17000 (17 seconds).
232232
|**checkpointFrequency**| **CheckpointFrequency**| (Optional) When set, it defines, in milliseconds, the interval between lease checkpoints. Default is always after each Function call.
233233
|**maxItemsPerInvocation**| **MaxItemsPerInvocation**| (Optional) When set, this property sets the maximum number of items received per Function call. If operations in the monitored collection are performed through stored procedures, [transaction scope](../cosmos-db/stored-procedures-triggers-udfs.md#transactions) is preserved when reading items from the Change Feed. As a result, the number of items received could be higher than the specified value so that the items changed by the same transaction are returned as part of one atomic batch.
234-
|**startFromBeginning**| **StartFromBeginning**| (Optional) This option tells the Trigger to read changes from the beginning of the collection's change history instead of starting at the current time. Reading from the beginning only works the first time the Trigger starts, as in subsequent runs, the checkpoints are already stored. Setting this option to `true` when there are leases already created has no effect.
234+
|**startFromBeginning**| **StartFromBeginning**| (Optional) This option tells the Trigger to read changes from the beginning of the collection's change history instead of starting at the current time. Reading from the beginning only works the first time the Trigger starts, as in subsequent runs, the checkpoints are already stored. Setting this option to `true` when there are leases already created has no effect. |
235+
|**preferredLocations**| **PreferredLocations**| (Optional) Defines preferred locations (regions) for geo-replicated database accounts in the Azure Cosmos DB service. Values should be comma-separated. For example, "East US,South Central US,North Europe". |
235236

236237
[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]
237238

0 commit comments

Comments
 (0)