piglet
piglet

Reputation: 93

Can you assign a user Managed Identity for individual functions in a Function App?

I'm in the process of creating some functions inside an Azure Function app to perform some internal tasks. Our general principle of authenticating Azure resources is to use Managed Identities wherever possible with the minimum set of permissions required for the resource to perform its duties. I have several functions inside the app which perform different tasks and therefore require a different set of permissions. For example:

Is it possible to assign a user-assigned managed identity to individual functions? If not, how could one go about implementing this kind of behaviour without assigning multiple identities to the function app itself? Thanks.

Upvotes: 1

Views: 310

Answers (1)

Thiago Custodio
Thiago Custodio

Reputation: 18387

No, the managed identity is assigned at the Function App Level.

if you need such granularity, you'd better separate your functions into different Azure Function Apps.

Upvotes: 2

Related Questions