Hi I am writing Azure function trigger to capture changes for cosmosdb. I am facing a basic problem.
In function.json, I would like to keep the below parameters dynamic ( It should be picked from environment variable). The reason is that the same app will be deployed in multiple environments and they may have different database name.
"databaseName": "CosmosDbName",
"collectionName": "UserCollectionName",
I tried setting the values in local.settings.json to test it but it failed and didn't pick the values.
Any suggestions ?
Found the solution
"databaseName": "%CosmosDbName%",
"collectionName": "%UserCollectionName%",