다음을 통해 공유


VirtualMachineResource.Generalize(CancellationToken) 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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize
  • Operation Id: VirtualMachines_Generalize
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineResource
public virtual Azure.Response Generalize (System.Threading.CancellationToken cancellationToken = default);
abstract member Generalize : System.Threading.CancellationToken -> Azure.Response
override this.Generalize : System.Threading.CancellationToken -> Azure.Response
Public Overridable Function Generalize (Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to