VirtualMachineResource.Generalize(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET