Azure / Azure/Azure-Functions

[Spec] CosmosDBTriggerAttribute to take configuration key

Open
#1,770 4 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Instead of having configurations hardcoded in CosmosDBTriggerAttribute, we should be able to pass the parameters through configurations.

Something like this

`[CosmosDbTrigger("MyTriggerConfig")] ... `

Then in the appSettings.json

```
"MyTriggerConfig" : {

"Database": "MyDb",
"Container" : "MyContainer",
"Lease" : "MyLease",
// . . .
}
```

Guess that can apply on other triggers as well.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.