Cannot share Azure VM image in Azure Gallery by RBAC

Mark Danilovich 0 Reputation points
2025-04-10T08:08:31.08+00:00

Cannot share Azure VM image in Azure Gallery by RBAC between different Tenants

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,713 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 8,516 Reputation points
    2025-04-10T08:49:50.7633333+00:00

    Hello Mark Danilovich,

    Wellcome to Q&A, sharing Azure VM images between tenants is doable with an Azure Compute Gallery, though it can be a bit of a complicated procedure.

    • You can share gallery resources using Azure's Role-Based Access Control (RBAC). This allows sharing with users, groups, or service principals—even if they're in another tenant.
    • To make this work across tenants, the recipient needs your tenant ID for login and access verification.
    • Azure's "Direct Shared Gallery" feature (currently in preview) simplifies sharing between subscriptions or tenants but provides read-only access only.
    • Limitations: Keep in mind that encrypted images can't be shared, you can’t query shared images directly, and updating group-based sharing settings isn't supported.

    To troubleshoot further, could you share a bit more detail about your issue? For example:

    • Are you seeing any error messages?
    • Is the problem with RBAC role assignment or "Direct Shared Gallery" setup?

    References:

    If the information helped address your question, please Accept the answer.

    Luis

    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.