VirtualMachines.capture(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd) 方法

定义

Captures the virtual machine by copying virtual hard disks of the VM and returns template as a JSON string that can be used to create similar VMs.

public String capture(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd)

参数

groupName
String

the resource group name

name
String

the virtual machine name

containerName
String

destination container name to store the captured VHD

vhdPrefix
String

the prefix for the VHD holding captured image

overwriteVhd
boolean

whether to overwrites destination VHD if it exists

返回

String

the template as JSON string

适用于