What are the pros and cons of using the same azure User assigned identity for multiple applications than using individual user assigned identities

Kuna, Chaitanya 0 Reputation points
2024-02-20T06:56:59.4533333+00:00

We have to read secrets from the key vault and we want to access them using user assigned identities. Could you please share the best approach for implementing this in multiple applications in terms of having one user assigned identity vs multiple user assigned identities

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,399 questions
Microsoft Entra
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 26,936 Reputation points MVP
    2024-02-20T07:02:18.19+00:00

    Hi, The answer is basically the same for every resource excluding shared resources like log analytics workspace, virtual networks, etc. You should create your resources per environment per application. Example two applications are using the same identity. One of the applications is deprecated and thus its resources are deleted. With that the identity is deleted as well. A change such as deprecation of one application affects another application and it should not.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.