DurableFunctionsMonitor icon indicating copy to clipboard operation
DurableFunctionsMonitor copied to clipboard

Manage multiple AzureWebJobsStorage

Open MarcoTranfaglia opened this issue 1 year ago • 6 comments

At the moment the Durable Function Monitor manages one instance of Azure Storage, via Env Var: AzureWebJobsStorage. Would it be possible to have more than one Azure Storage connection? Configuration can be achieved (for example) via comma separated values of connection strings

So in the UI, it should be added a combo box that makes possible to choose between different storages configured, (and for each storage we can have multiple Task Hub choices)

Image

MarcoTranfaglia avatar Oct 14 '24 13:10 MarcoTranfaglia

Hey @MarcoTranfaglia ,

DfMon InProc does supports multiple Storage accounts, via DFM_ALTERNATIVE_CONNECTION_STRING_XXX config settings. Note though, that those alternative connection strings can only be access key-based (not identity-based).

DfMon Isolated does not support those, and is unlikely to ever support. After all, you can always run multiple DfMon instances on the same App Service Plan - and that would eliminate the cost concern (if that is the concern). If there're any other concerns - please, share.

DfMon as a VsCode ext automatically shows you all Task Hubs in all Storage accounts visible to you, so that is also an option.

scale-tone avatar Oct 14 '24 14:10 scale-tone

@MarcoTranfaglia , does that answer your question?

scale-tone avatar Nov 02 '24 19:11 scale-tone

Hi! It anwers my question, but unluckly does not solve our scenario . It's not only a mattern of costs (as you said, we are using the Same Service Plan).

Since we have many Functions App (with different storage account) we wanted to have 1 single instance of DFM that monitors multiple functions.

MarcoTranfaglia avatar Nov 04 '24 09:11 MarcoTranfaglia

So, why not using one single instance of DfMon InProc?

scale-tone avatar Nov 04 '24 09:11 scale-tone

Hi @scale-tone InProcess worker mode is in path of deprecation : https://azure.microsoft.com/fr-fr/updates/retirement-support-for-the-inprocess-model-for-net-apps-in-azure-functions-ends-10-november-2026

I'm in same situation than Marco, should be far more user friendly if you have 1 DfMon for all function. Is there any technical issue with multiple Storage accounts in Isolated mode ?

MasterKuat avatar Nov 05 '24 09:11 MasterKuat

So, why not using one single instance of DfMon InProc?

I have the same scenario, one dfm instance to monitor multiple taskhubs on different storage accounts. For security purposes, these accounts have their access keys disabled. As you stated earlier, in-proc does dfmon does not support identity-based storage.

mdddev avatar Dec 12 '24 08:12 mdddev