VirtualMachineResource.Deallocate 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.
Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate
- Operation Id: VirtualMachines_Deallocate
- Default Api Version: 2023-09-01
- Resource: VirtualMachineResource
public virtual Azure.ResourceManager.ArmOperation Deallocate (Azure.WaitUntil waitUntil, bool? hibernate = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Deallocate : Azure.WaitUntil * Nullable<bool> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.Deallocate : Azure.WaitUntil * Nullable<bool> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function Deallocate (waitUntil As WaitUntil, Optional hibernate As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
Optional parameter to hibernate a virtual machine. (Feature in Preview).
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for