public static void Run([QueueTrigger("myqueue-items", Connection = "QueueStorage")]string myQueueItem, ILogger log)
Considering, the above sample code, I have placed the connection string "QueueStorage" in the Configuration setting in the portal. This configuration setting uses a key-vault to fetch the primary connection string from secrets.
Now the issue is, currently we are storing both primary and secondary connection strings in the key vault. I have created two variables in the Configuration setting to fetch primary and secondary connection strings respectively.
The feature which I need to add in my Azure function is in case there is some issue while fetching the primary connection string, I need to pull the secondary connection string.
Is there any way this could be handled in the Connection parameter w.r.t the above code, considering in the Connection parameter, I can place only one Configuration setting related variable?
Thanks a lot for the help here.