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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET