Simple Azure Marketplace Virtual Machine Offer: creating VM images and publishing in Partner Center
Published Jan 13 2021 02:26 PM 3,550 Views
Microsoft

In the following four videos, we look at how to create Linux and Windows VM images using Packer.io unmanaged VHD and Azure Shared Image Gallery destinations, how to publish these images as Azure Marketplace Virtual Machine offer in Microsoft Partner Center, and how to deploy and test the “preview” offer plans/SKUs.

 

You can see the sample code used in the videos here.

 

Update: As of March 2021, Partner Center allows to publish VM offers directly from Azure Shared Image Gallery (SIG) instead of needing to generate SAS URL for the VHD file. Therefore, you may want to skip Video #1 and look at Video #2 without focusing on the part describing how to export the SIG image to VHD.

1_h-KPWlkpi9G_XZml5cFpAA

Azure Virtual Machine Offer Hierarchy - Publisher, Offer, Plan/SKU, and Version

 

Video #1: Creating Azure VM image for Azure Marketplace Virtual Machine Offer using Packer with “unmanaged” VHD destination

 

Tip: Play the video full screen to see all of the details.

 

 

1_xWdbFmFsayI2kHDih7gOJw

Using Packer with "unmanaged" VHD destination to get the VHD SAS URL for Partner Center

 

Video #2: Creating Azure VM image for Azure Marketplace Virtual Machine Offer using Packer with Azure Shared Image Gallery destination

 

Tip: Play the video full screen to see all of the details.

 

Update: As of March 2021, Partner Center allows to publish VM offers directly from Azure Shared Image Gallery (SIG) instead of needing to generate SAS URL for the VHD file. Therefore, you may want to look at Video #2 without focusing on the part describing how to export the SIG image to VHD.

 

 

1_8SHRg94M4rzaiR0v8cnqAw

Using Packer with Azure Shared Image Gallery destination and then exporting the image and copying the VHD into Azure Storage account

 

Video #3: Publishing Azure Marketplace Virtual Machine Offer in Partner Center using SAS VHD URL

 

Tip: Play the video full screen to see all of the details.

 

 

Video #4: Deploying and testing “preview” Virtual Machine offer from Azure Marketplace

 

Tip: Play the video full screen to see all of the details.

 

 

Azure VM offer plans can used by Azure Apps

 

Azure Application offers (i.e. Solution Template or Managed Application) can use VM offer plan/SKU inside of their ARM templates. The VM offer plan can be marked as “hidden” so that it is not visible directly in Azure Marketplace UI but can still be used via ARM templates or command line tools.

1_pJr5NLKop6xsCGRfiyxOAg

 

You can find the sample code used in the videos above at https://github.com/arsenvlad/azure-vm-offer-hello-world-202012

 

Originally published at https://arsenvlad.medium.com/simple-azure-marketplace-virtual-machine-offer-creating-vm-images-and-p... on December 23, 2020.

Co-Authors
Version history
Last update:
‎Mar 11 2021 04:51 PM
Updated by: