Creating Virtual Machine Role Templates by Using VMM and Windows Azure Pack

 

Updated: May 13, 2016

Applies To: System Center 2012 R2 Virtual Machine Manager

As of System Center 2012 R2, as a hosting provider, you can use Virtual Machine Manager (VMM) in combination with Windows Azure Pack to increase the range of capabilities that you can offer to tenants. To help tenants create virtual machines with specific operating systems and applications already installed, in a way that works flexibly with software licensing methods, you can create Virtual Machine Role templates. Tenants can use these templates to create Virtual Machine Roles in both on-premises hosting environments and service-provider hosting environments.

Note

To use Virtual Machine Role templates, you must use VMM in System Center 2012 R2 with Windows Azure Pack.

To begin to create a Virtual Machine Role template, you can download and install one or more Windows Azure Pack Gallery Resources into your hosting environment. Windows Azure Pack Gallery Resources include two types of standard, reusable software packages:

  • Resource Definition package: Forms the basis for creating a virtual machine.

  • Resource Extension package: Forms the basis for installing applications on a virtual machine.

Each Windows Azure Pack Gallery Resource contains a Readme file that explains how to prepare your environment for that resource. Part of the process of installing the gallery resource into your hosting environment is to use Windows PowerShell commands to import the Resource Extension package into VMM.

To create a Virtual Machine Role template, you also need a virtual hard disk file that contains an operating system that has been prepared for deployment. For example, you could use a virtual hard disk file in .vhdx format that contains an operating system such as Windows Server 2012 that has been prepared with the Sysprep tool. After you create the virtual hard disk, you must add it to the VMM library and use the VMM console and Windows PowerShell to provide VMM with necessary information about the virtual hard disk. Examples of this information include the name of the operating system and the specific release number.

Use the following table to find more information about the process for creating a Virtual Machine Role template, and about items such as Windows Azure Pack Gallery Resources, and the Resource Definition and Resource Extension packages within them.

Type of information Link
Information about Windows Azure Pack Windows Azure Pack on the Microsoft website

 Windows Azure Pack for Windows Server on TechNet
Description of how to add file-based resources, such as virtual hard disk files, to the VMM library How to Add File-Based Resources to the VMM Library on TechNet
Steps for creating a Virtual Machine Role template, including steps for downloading items from the Windows Azure Pack Gallery and steps for importing Resource Extension packages into VMM Downloading and Installing Windows Azure Pack Gallery Resource on the TechNet wiki
A link for downloading the Web Platform Installer, with which you can download Windows Azure Pack Gallery Resources Microsoft Web Platform Installer
Description and diagram of how Virtual Machine Role templates are created, with descriptions of Resource Definitions and Resource Extensions System Center 2012 R2 Virtual Machine Role Authoring Guide on the TechNet wiki
Steps for creating a customized Virtual Machine Role template, including steps for creating Resource Definition and Resource Extension packages and installing them in your hosting environment System Center 2012 R2 Virtual Machine Role Authoring Guide - Installing a Virtual Machine Role on the TechNet wiki

See Also

Adding an Azure subscription in VMM in System Center 2012 R2 with Update Rollup 6