Search code examples
azurecloudazure-storageazure-cloud-servicesamazon-ami

How to make an Azure Image public?


I have an Azure Image that I created using Packer. Now, I want to reference this image in an Azure Resource Management template that I want to open source. So, for anyone to use my ARM template, that Azure Image has to be public. How can I accomplish this?

I'm a big AWS user, so what I'm essentially trying to do is create an AMI and set it's permissions to "public" so anyone can use, but in Azure.


Solution

  • Agree with evilSnobu, you can upload your VHD to Azure blob storage account, and set the access type to Blob(anonymous read access for blob only). You can use the URL in template to deploy Azure VM.
    enter image description here

    Also you can upload VHD to Azure storage account and use SAS (shared access signatures) to that blob.

    More information about SAS, please refer to this article.

    About use Azure PowerShell to create SAS, please refer to this article.