ComputeScheduleExtensions.SubmitVirtualMachineDeallocateAsync 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.
VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future. <item> Mocking. To mock this method, please mock SubmitVirtualMachineDeallocateAsync(AzureLocation, SubmitDeallocateContent, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.DeallocateResourceOperationResult>> SubmitVirtualMachineDeallocateAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationparameter, Azure.ResourceManager.ComputeSchedule.Models.SubmitDeallocateContent content, System.Threading.CancellationToken cancellationToken = default);
static member SubmitVirtualMachineDeallocateAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.ComputeSchedule.Models.SubmitDeallocateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.DeallocateResourceOperationResult>>
<Extension()>
Public Function SubmitVirtualMachineDeallocateAsync (subscriptionResource As SubscriptionResource, locationparameter As AzureLocation, content As SubmitDeallocateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DeallocateResourceOperationResult))
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- locationparameter
- AzureLocation
The location name.
- content
- SubmitDeallocateContent
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
subscriptionResource is null.