共用方式為


VirtualMachinesOperationsExtensions.Generalize Method

Definition

Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to Create a managed image of a generalized VM in Azure. For Linux, please refer to How to create an image of a virtual machine or VHD.

public static void Generalize (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string vmName);
static member Generalize : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string -> unit
<Extension()>
Public Sub Generalize (operations As IVirtualMachinesOperations, resourceGroupName As String, vmName As String)

Parameters

operations
IVirtualMachinesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

vmName
String

The name of the virtual machine.

Applies to