Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 1.81 KB

functions-cosmosdb-input-settings-v4.md

File metadata and controls

19 lines (19 loc) · 1.81 KB
authorms.servicems.topicms.datems.author
ggailey777
azure-functions
include
02/08/2022
glenga
function.json propertyDescription
typeMust be set to cosmosDB.
directionMust be set to in.
nameThe variable name used in function code that represents the list of documents with changes.
connectionThe name of an app setting or setting container that specifies how to connect to the Azure Cosmos DB account being monitored. For more information, see Connections.
databaseNameThe name of the Azure Cosmos DB database with the container being monitored.
containerNameThe name of the container being monitored.
partitionKeySpecifies the partition key value for the lookup. May include binding parameters. It is required for lookups in partitioned containers.
idThe ID of the document to retrieve. This property supports binding expressions. Don't set both the id and sqlQuery properties. If you don't set either one, the entire container is retrieved.
sqlQueryAn 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 container is retrieved.
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.
close