Overview

Windows Azure Pack Gallery Resources allow you to provide offerings to tenants using standard and reusable artifacts. This guide provides procedures for obtaining new Gallery Resources and for installing them in your hosting environment. You will require
the ReadMe file that ships with each Gallery Item to complete this procedure. This file includes the values specific to that particular item.

Prerequisites

Cloud Capabilities

Virtual Machine Roles do not have the ability to specify a capability profile that they are capable with. As a result, you cannot deploy a Gallery Item on a cloud that has any cloud capability profiles defined.

Hyper-V Clusters

If you are deploying the Virtual Machine Role to a cloud that includes a Hyper-V cluster, then the cloud must have a custom property called
CreateHighlyAvailableVmRoles with its value set to true
in order for the virtual machines to be configured as highly available.

You can use the following procedure to add this custom property.

In VMM, right-click the cloud and select Properties.

Select the Custom Properties tab.

Click Manage Custom Properties.

Select Cloud for Object Type.

Click Create to create a new property.

Name the property CreateHighlyAvailableVmRoles.

Select the new property and click Add.

Click OK.

Type true for the property value.

Click OK.

Instead of the manual steps, you can use the following Windows PowerShell commands to create the custom property.

A window will be opened for the folder on the local computer where the Gallery Resource has been downloaded.

Download and Install Payload

The Resource Extension for some Gallery Resources will require additional software to be added to the package prior to installation. The Readme file that accompanies the Gallery Resource will specify whether additional software is required, the procedure
for obtaining it, and where it should be located when the Gallery Resource is installed.

Import Resource Extension Package

You use Windows PowerShell to import the Resource Extension Package into Virtual Machine Manager. There is currently no user interface to support this process.

Not all Gallery Resources use a Resource Extension, so make sure you review the Packages section in the Readme file before you proceed with this section.

The following Windows PowerShell sample shows how to install a Resource Extension Package named MyVMRole.resextpkg. This assumes a library share named MSSCVMMLibrary.

The following cmdlets are part of the Virtual Machine Manager PowerShell Module.

Verify that the import completed successfully with the following Windows PowerShell cmdlet.

Get-CloudResourceExtension

Prepare the virtual hard disks

Each Virtual Machine Role Gallery Item requires an operating system virtual hard disk installed with the operating system and other software specified in the Gallery Item’s Readme file. The installation must be prepared with
Sysprep and added to a VMM library share. The Readme file may also specify other requirements for the contents of this disk and will also specify whether a data virtual hard disk is required.

Virtual Hard Disk Properties

The properties in the following sections must be set on the Virtual Hard Disk in order to properly identify it to the Gallery Item. The Readme file for the Gallery Item will include requirements for each of these properties for both the operating system
disk and any required data disks.

Operating System

The Operating System property on the operating system disk specifies which operating system is installed on the virtual hard disk. For data disks, the Operating System value must always be set to None.

You can set this property using either the Virtual Machine Manager Administrator console or using Windows PowerShell. The following Windows PowerShell sample shows how to set the Operating System property to “64-bit edition of Windows Server 2012 Datacenter”
for a virtual hard disk named MyVirtualHardDisk. You should replace this value with one of the values specified in the Readme file.

Family Name and Release

The Familyname and Release properties of the virtual hard disk must be set in order for the Windows Azure Pack portal to display the virtual hard disk as an available disk for this Gallery Resource. These values are shown in the portal drop-down list.

Familyname property values should indicate the contents of the virtual hard disk, including the Windows Server release and edition. The Readme file of the Gallery Resource should include appropriate Familyname values.

Release property values must conform to the Windows Azure versioning scheme of n.n.n.n. Examples include 1.0.0.0 and 1.0.0.1.

You can set this property using either the Virtual Machine Manager Administrator console or using Windows PowerShell. The following Windows PowerShell sample shows how to set the Family Name property to “Windows Server 2012 Datacenter” and the Release property
to “1.0.0.0” for a virtual hard disk named MyVirtualHardDisk. You should replace this value with one of the values specified in the Readme file.

Tags

Virtual Machine Role Gallery Items specify tags that must be included on an operating system disk for it to be available as an option when a user provisions the virtual machine. The Readme file of the gallery resource should include the tags that it requires.
Gallery items may optionally specify tags that are required on data disks, but the data disk may not require any tags.

Windows PowerShell is required to set this property. The following Windows PowerShell sample shows how to set the tag “WindowsServer2012R1” on a virtual hard disk named MyVirtualHardDisk. You should replace this value with one of the values specified in
the Readme file.

Import Resource Definition Package

Once you have imported the Resource Extension and configured the Virtual Hard Disk in VMM, you can import the Resource Definition package and publish the gallery item using the Service Administrator Portal in Windows Azure Pack. At the completion of these
steps, the gallery item will be available to the tenant.

Import Resource Definition Package

The Gallery Resource will include one or more Resource Definition Package files. If it includes more than one, then the ReadMe file will specify the different configuration that each one will provide.

Open the Service Admin Portal.

Navigate to the VM Clouds workspace.

Click the Gallery tab.

Click Import.

Select and import the Resource Definition Package file for the gallery item. This will be the file with the extension
resdefpkg.

The gallery item should now be listed on the Gallery tab.

Publish gallery item and add to a plan

On the Gallery tab, select the version of the gallery item that you just imported.

Click the arrow next to the gallery item name.

Verify the details of the gallery item.

Navigate back and click Make Public.

Select the Plans workspace in the Service Admin Portal.

Select the plan to which you want to add this gallery item.

Select the Virtual Machine Clouds service.

Scroll to the Gallery section.

Click Add Gallery Items.

Select the gallery items that you imported, and then click Save.

The Virtual Machine Role is now available to the tenant as part of the selected plan.