How can I share an Azure VM image with other subscriptions?

I need to create an Azure VM image that can be used by other people to create VMs in their own subscriptions.

I've looked at the Azure documentation for VMs and images. I can find info on how to create images and about how to create VMs from an image. But I cannot find any reliable information on whether there's any way to make my VM available to other people with their own subscriptions. The official Microsoft Azure documentation doesn't ever say whether or not this can be done. Some unofficial sources seem to say that I need to put the image in a Container and make the Container public, and people can copy it to their own subscription.

Can anyone tell me whether my goal in the first paragraph is possible, and if so how do I do it?


The link Michael provided is the official process of sharing Images within your company (same AD Tenant) across subscription and region.

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/shared-image-galleries

One key thing to point out it's still in preview which means it limited and you will need to manually register the feature.

Hope this help.....


google is your friend!!

besides the new gallery feature mentioned in the comments, you can do it manually, the "old" way.

Create an managed image in the source subscription

Create a managed snapshot of the OS disk from the generalized VM

Copy the managed snapshot to the target Azure subscription

In the target subscription, create an managed image from the copied snapshot

all steps described comprehensively includes code snippets:

https://michaelcollier.wordpress.com/2017/05/03/copy-managed-images/