Can multiple UMIs have the same name in one tenant in Azure?

Thea 40 Reputation points
2025-09-26T08:15:58.2+00:00

Hi! I was wondering if it is technically possible for more than one UMI to have the same name within one tenant in Azure? If so, is there any way to avoid that?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Jerald Felix 7,520 Reputation points
    2025-09-26T17:12:48.3333333+00:00

    Hi Thea,

    Thanks for your question on User-Assigned Managed Identities (UMIs) in Azure. Yes, it's technically possible for multiple UMIs to have the same name within a single tenant, as long as they are created in different resource groups—the name uniqueness is scoped to the resource group level, not the entire tenant or subscription. For example, you could have a UMI named "my-identity" in Resource Group A and another with the same name in Resource Group B.

    To avoid duplicates and maintain clarity:

    Use descriptive, unique names incorporating details like environment or purpose (e.g., "prod-app-identity-v1" instead of just "app-identity").

    Organize UMIs into dedicated resource groups based on projects or teams to naturally prevent naming conflicts.

    When creating via Azure CLI or PowerShell, check existing names in the target RG first with commands like az identity list --resource-group <group-name> to verify availability.

    This approach leverages Azure's resource scoping while keeping things organized. If you're running into specific errors or need script examples for automation, feel free to share more details!

    Best Regards,

    Jerald Felix

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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