Hangfire Pro + Azure Redis: How to Use Managed Identity Instead of Connection Strings?

Hi everyone,

We’re using Hangfire Pro and are looking to connect Hangfire to Azure Cache for Redis using Azure Managed Identity for authentication, instead of relying on traditional connection strings with embedded credentials.

I’ve searched through the documentation and forums but haven’t found any clear guidance on whether this is supported or how to implement it.

Has anyone successfully configured this setup? Specifically, I’m looking to understand:

  • Does Hangfire support using Azure Managed Identity to authenticate with Azure Cache for Redis?
  • If so, what are the required steps or configurations?
  • Are there any limitations or caveats to be aware of?

We’re trying to follow security best practices by avoiding secrets in our application configs. Any help, insights, or examples would be greatly appreciated.

Thanks!