Can the VM images in an Azure Compute Gallery access be controlled?

David Downing 706 Reputation points
2022-03-03T18:07:30.447+00:00

I am researching the possibility of using an Azure Compute Gallery to store VM images that are designed specifically for my subscription/tenant and other subscriptions/tenants of my choosing.

When I publish VM images to an Azure Compute Gallery, can I restrict who has access to the VM images?

Reference Documentation:
Compute Gallery
https://learn.microsoft.com/en-us/azure/virtual-machines/shared-image-galleries?source=docs

Thank you.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,053 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-03-04T08:42:03.267+00:00

    You can apply RBAC permissions to define who has access to the shared gallery. You can find more details from documentation here: share-gallery

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-03-05T05:46:28.78+00:00

    You can start defining the RBAC as shown here
    180284-image.png

    Once the image is ready, three levels of permissions are possible: Shared Image Gallery, Shared Image, Shared Image Version

    More granular level control is also possible by working through PowerShell. You can find all available granularity by executing the cmdlet:

    Get-AzProviderOperation Microsoft.Compute/Galleries/* | fl  
    

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--


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.