IVirtualMachinesOperations.DeallocateWithHttpMessagesAsync Method

Definition

Overloads

DeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

DeallocateWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken)

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

DeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>)

DeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeallocateWithHttpMessagesAsync (string resourceGroupName, string vmName, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders, System.Threading.CancellationToken cancellationToken);
abstract member DeallocateWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function DeallocateWithHttpMessagesAsync (resourceGroupName As String, vmName As String, customHeaders As Dictionary(Of String, List(Of String)), cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

resourceGroupName
String

The name of the resource group.

vmName
String

The name of the virtual machine.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Applies to

DeallocateWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken)

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeallocateWithHttpMessagesAsync (string resourceGroupName, string vmName, bool? hibernate = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeallocateWithHttpMessagesAsync : string * string * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function DeallocateWithHttpMessagesAsync (resourceGroupName As String, vmName As String, Optional hibernate As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parameters

resourceGroupName
String

The name of the resource group.

vmName
String

The name of the virtual machine.

hibernate
Nullable<Boolean>

Optional parameter to hibernate a virtual machine. (Feature in Preview)

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Applies to

DeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>)

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeallocateWithHttpMessagesAsync (string resourceGroupName, string vmName, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders);
abstract member DeallocateWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function DeallocateWithHttpMessagesAsync (resourceGroupName As String, vmName As String, customHeaders As Dictionary(Of String, List(Of String))) As Task(Of AzureOperationResponse)

Parameters

resourceGroupName
String
vmName
String
customHeaders
Dictionary<String,List<String>>

Returns

Applies to