VirtualMachineResource.GeneralizeAsync(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 System.Threading.Tasks.Task<Azure.Response> GeneralizeAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GeneralizeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.GeneralizeAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GeneralizeAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
Azure SDK for .NET