Virtual Hard Disk Requirements of Windows Azure Pack Gallery Items

Virtual Hard Disk Requirements of Windows Azure Pack Gallery Items

  • Comments 7
  • Likes

~ Stephen Baron | Program Manager

Information[5]Windows Azure Pack introduces Virtual Machine Role gallery items which enable users to deploy and configure workloads such as SQL Server, SharePoint or a LAMP stack. We recently posted a blog entry and associated video illustrating how to download and import a number of sample items.

This post will provide a brief overview of virtual hard disk requirements in System Center 2012 R2 Virtual Machine Manager as they pertain to gallery items. You can find more detailed coverage via a video which walks through setting up virtual hard disk properties for both Operating System and Data disks in order to enable Virtual Machine Role gallery item deployments. The video is available at http://youtu.be/qRmiKkoMYOA.

In order to make virtual hard disks available to users within the Windows Azure Pack Virtual Machine role deployment wizard, a number of properties must be set on the appropriate virtual hard disks within System Center 2012 R2 – Virtual Machine Manager, and the requirements vary slightly between Operating System Disks and Data disks.

To get started, the virtual hard disk must be available to the cloud(s) which are included in Windows Azure Pack plans. To do this, ensure that the library share in which the virtual hard disk is stored is added as a read-only library share in the cloud’s property page in the Library tab:

clip_image002

In addition to ensuring that the virtual hard disk is available to the applicable cloud(s), Operating System disks require that the following properties be configured:

  • Family Name: A friendly name; for example WindowsServer2012 or CentOSLinux6
  • Release: Must be in the format n.n.n.n; for example 1.0.0.0
  • Operating System: Select from the available options in the virtual hard disk properties page:


clip_image004

  • Tags: Tags may be required by Windows Azure Pack Virtual Machine Role Gallery Items and may only be set via the Virtual Machine Manager Powershell set-SCVirtualHardDisk cmdlet using the optional –Tag parameter. Gallery Item ReadMe files should specify if any tags are required by a particular gallery item. For example, the following PowerShell cmdlet will set a tag of WindowsServer2012 on the virtual hard disk stored in the $vhd variable:

Set-SCVirtualHardDisk –VirtualHardDisk $vhd –Tag “WindowsServer2012”

The following screenshot shows that there are 6 Operating System virtual hard disks (highlighted) that have the required properties set.

clip_image006

Additionally, the following screenshot shows that the CentOSPrep.vhd has a single tag set, namely CentOSLinux6:

clip_image007

Gallery Items may specify that the Virtual Machine Role has one or more data disks. Data disk requirements are as follows:

  • Family Name: A friendly name; for example Data Disk 16GB or Data Disk 60GB
  • Release: Must be in the format n.n.n.n; for example 1.0.0.0
  • Operating System: Must be set to None:

clip_image009

  • Tags: Tags are not applicable to Data Disks

The following screenshot shows that there are 2 Data Disk virtual hard disks (highlighted) that have the required properties set:

clip_image011

The following screenshot shows how Operating System and Data Disk virtual hard disks are made available to users via the Windows Azure Pack Virtual Machine Role deployment wizard. The Gallery Item in this case specified an Operating System Disk with a single tag of WindowsServer2012 and also included a single data disk, both of which were parameterized such that the end user is allowed to select the appropriate disk at deployment time:

clip_image013

We hope this blog post (and the associated video) has helped you understand how to set virtual hard disk properties in System Center 2012 R2 Virtual Machine Manager (VMM 2012) in order to make Windows Azure Pack VM Role deployments successful.

Enjoy!

Stephen Baron | Program Manager | Microsoft

Get the latest System Center news on Facebook and Twitter:

clip_image001 clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

SCVMM 2012

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • I'm trying to use Set-SCVirtualHardDisk –VirtualHardDisk $vhd –Tag “WindowsServer2008” to set the tag. But every time I do I get a lot PowerShell gunk back:

    Set-SCVirtualHardDisk : Cannot bind parameter 'VirtualHardDisk'. Cannot convert the "C:\ProgramData\Virtual Machine

    Manager Library Files\vhds\win2008R2_disk_1.vhdx" value of type "System.String" to type

    "Microsoft.SystemCenter.VirtualMachineManager.VirtualHardDisk".

    At line:1 char:40

    + Set-SCVirtualHardDisk –VirtualHardDisk $vhd –Tag “WindowsServer2008”

    +                                        ~~~~

       + CategoryInfo          : InvalidArgument: (:) [Set-SCVirtualHardDisk], ParameterBindingException

       + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.SetV

      HDCmdlet

    Any thoughts to what my problem could be?

  • How did you populate the $vhd variable?  You should be doing something like:

    $vhd = Get-SCVirtualHardDisk -Name "My Windows 2008.vhdx"

  • Lou, I had the same issue. I modded the script to this, and it worked well; $vhd = Get-SCVirtualHardDisk -Name *VHDName.vhdx* Set-SCVirtualHardDisk -VirtualHardDisk $vhd -Tag WindowsServer2012R2