The skeleton code for a CosmosDB triggered function is:
[CosmosDBTrigger(
databaseName: "databaseName",
collectionName: "collectionName",
ConnectionStringSetting = "string",
LeaseCollectionName = "leases")]
ConnectionStringSetting is limited to being an AppSetting here. I would like to go to key vault to grab this secret.
The comments for the attribute suggest that there is a way using CosmosDBOptions:
/// Optional. A string value indicating the app setting to use as the CosmosDB connection string, if different
/// than the one specified in the <see cref="CosmosDBOptions"/>.
but it's not clear how to use that class within the context of an Azure Function.
Is this possible?