Reputation: 3283
I have a simple ServiceBusTrigger which works fine when the connection string is inside my localsettings.json
However, I need to load this from the KeyVault
This approach is easy to do with Web Storage
Has anyone managed to do this with ServiceBusTriggers?
I dont have any pipelines at present
[FunctionName("MyFunction")]
public async Task PaymentReadyForExport([ServiceBusTrigger("my-topic", "my-subscription", Connection = "event-bus-connection")] string mySbMsg, ILogger log)
{
//logic here
}
Paul
Upvotes: 0
Views: 632
Reputation: 350
You can accomplish this by using Key Vault references in your App settings for a deployed function app.
Upvotes: 2