If the packager did not work out, you probably have made some sort of typo somewhere or it just doesn’t like the paths you provide. You should now have a marketplace item in azpkg format. \AzureGalleryPackageGenerator\AzureGalleryPackager.exe -m C: \OpenLogic.CentOS.72\Manifest.json -o C:\MyMarketPlaceItems Now open a command prompt or PowerShell console and navigate to the packager and run. OpenLogic.CentOS.72) and move it to the root of C. Let’s rename the root folder of our gallery item to something that makes more sense to us as well (e.g. Download the Azure Gallery Packager and extract it somewhere you can find it. Now we edited the files, it’s time to create the azpkg we need to add the Gallery item to the portal. I did not replace the Hero icon as it does not surface anywhere yet. I’ve binged a descent CentOS image and replaced the images. With vs code, you can open the Root folder and have a navigation pane on the left.Ĭurrently Manifest.json has values concerning the Windows Server 2012 R2 image. I’m going to use VS Code, so if you want to follow along, download it here: Editing the files
Use VS CodeĪlthough not a must, I highly advise the use of VS Code to modify the files. We explore what these files mean and are mend for when we start to edit them.
Ok, now we cleaned up, we have a good template to start working on.įor good measure, the file and folder structure should now look like this: Also in DeploymentTemplates there is another _rels folder to remove. We get rid of the _rels folder, the guid named folders and the. We will cleanup everything that will be generated by the packager later.
Rename the azpkg extension to zip and extract.Įxpand-Archive -Path. Now you have copied it, you can extract it. Copy it somewhere you can find it (I’m copying it to my desktop) from: C:\ClusterStorage\Volume1\Shares\SU1_TenantLibrary_1\GalleryImages\Microsoft.Compute\local\MicrosoftWindowsServer.WindowsServer-2012-R2-Datacenter.1.0.0.azpkg In this case, I’m using the gallery item used to surface the Windows Server 2012 R2 image in the portal as a building block. So my advice is, not to start from scratch but take an existing gallery item and go from there.
Not much is documented currently on how to create gallery items and what the possibilities are.
I keep saying “things” as VM Images are not the only artifacts on which this applies. But if we want those “things” to surface in the portal as well, we need to add gallery items corresponding to our “things”.