大网数据广告活动
Windows Server 管理

Use VM templates in Windows Admin Center Virtualization Mode (preview)

· 52CE 我爱测

Learn how to convert VMs to templates, deploy new VMs from templates, and convert templates back to VMs in Windows Admin Center Virtualization Mode.

Virtual machine (VM) templates in Windows Admin Center Virtualization Mode let you save a configured VM as a reusable, read-only blueprint. Instead of manually creating each VM, you define a configuration once and deploy consistent VMs across your Hyper-V hosts.

This article walks you through converting a VM to a template, deploying new VMs from a template, and converting a template back to a regular VM.

Important: Windows Admin Center Virtualization Mode is currently in PREVIEW. This information relates to a prerelease product that may be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.

Prerequisites

Convert a VM to a template

When you convert a VM to a template, you make it read-only and a {Template}{Read-only} prefix is automatically added to its name in the resource pane. The original VM isn't available as a running VM after conversion.

Tip: Before you convert a VM to a template, run sysprep on the VM to generalize it. Sysprep removes machine-specific information and prepares the VM for deployment as a template. For more information about sysprep, see Sysprep (Generalize) a Windows installation.

To convert a VM to a template, follow these steps:

  1. Open the Windows Admin Center Virtualization Mode gateway site, and then sign in with an account that has the Gateway Administrator role or equivalent permissions.

  2. In the resource pane, expand the resource group and host, and then locate the VM you want to convert.

  3. Verify the VM is shut down. If the VM is running, power it off before continuing.

  4. Select the ellipsis (...) next to the VM name or right-click the VM name, and then select Convert to Template.

  5. A notification appears when conversion starts. To monitor progress, select the notification bell icon to open the Workflow status panel. The workflow validates VM eligibility, converts the VM, updates the database, and verifies template creation.

  6. When the workflow completes, the VM appears in the resource pane with the {Template}{Read-only} prefix.

Deploy a new VM from a template

When you deploy a VM from a template, you create a new VM based on the template's configuration. The template stays unchanged and is available for future deployments.

To deploy a new VM from a template, follow these steps:

  1. In the resource pane, find the template you want to deploy. Templates display with the {Template}{Read-only} prefix.

  2. Select the ellipsis (...) next to the template name or right-click the template, and then select Deploy VM.

  3. In the Deploy VM from template panel, complete the following required fields:

    Field Description
    Virtual machine name Enter a name for the new VM. Use your organizational naming conventions.
    Storage path Enter the storage path for the new VM files (for example, C:\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines).
  4. Select Deploy to start the deployment.

  5. A notification confirms that the deployment starts. To monitor progress, select the notification bell icon to open the Workflow status panel. The workflow validates the template, exports it, imports a new VM, starts the VM, and restores the template.

  6. When the workflow completes, the new VM appears in the resource pane under the host and starts automatically. Select the VM to view its properties, including state, generation, memory, and operating system details.

Convert a template back to a VM

If you no longer need a template, you can convert it back to a regular VM. This action removes the read-only status and makes the VM editable again.

To convert a template back to a VM:

  1. In the resource pane, locate the template you want to convert back. Templates display with the {Template}{Read-only} prefix.

  2. Select the ellipsis (...) next to the template name, and then select Convert to VM.

  3. In the Convert to VM confirmation dialog, review the template name, and then select Convert to confirm.

  4. A notification confirms the conversion started. To monitor progress, select the notification bell icon to open the Workflow status panel.

  5. When the workflow completes, the template is converted back to a regular VM and the {Template}{Read-only} prefix is removed from its name in the resource pane.

Related content

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 05/13/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。