Does using Managed Identity as compared to Connection String(With SAS key) to post events to event Hub from Azure Function have any impact when concurrent executions of the Azure functions increase?

Nirav Soni 0 Reputation points
2023-04-14T05:34:32.6833333+00:00

We have an Azure Function(Premium V2 consumption plan) that posts events to event hub. Right now, for connecting to event hub, the connection string is used with SAS token. We were looking for a better or a more secure way to do this connection and came up with using Managed Identity. The question is: What happens when the concurrent executions of the Azure Function increases(Scaling). Earlier because we were using connection string, there was no dependency involved. Now, if we go ahead with Managed identity, we're introducing a dependency of Managed Identity service to do its magic. Will the service that provides a token for Managed Identity scale when the azure function scales?

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
661 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,678 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,611 Reputation points Microsoft Employee
    2023-04-19T15:26:09.3633333+00:00

    Managed Identity is like fetching a token from Azure AD except that you don't have to manage the environment variables normally needed for a client credentials flow. Also, since the SDK using with Functions already handles token caching and refreshing, it should scale with ease alongside your function app.

    0 comments No comments