MockableComputeScheduleSubscriptionResource.SubmitVirtualMachineDeallocate 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.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate
- Operation Id: ScheduledActions_SubmitVirtualMachineDeallocate
- Default Api Version: 2025-04-15-preview
- Resource: ScheduledActionResource
public virtual Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.DeallocateResourceOperationResult> SubmitVirtualMachineDeallocate(Azure.Core.AzureLocation locationparameter, Azure.ResourceManager.ComputeSchedule.Models.SubmitDeallocateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member SubmitVirtualMachineDeallocate : Azure.Core.AzureLocation * Azure.ResourceManager.ComputeSchedule.Models.SubmitDeallocateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.DeallocateResourceOperationResult>
override this.SubmitVirtualMachineDeallocate : Azure.Core.AzureLocation * Azure.ResourceManager.ComputeSchedule.Models.SubmitDeallocateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.DeallocateResourceOperationResult>
Public Overridable Function SubmitVirtualMachineDeallocate (locationparameter As AzureLocation, content As SubmitDeallocateContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DeallocateResourceOperationResult)
Parameters
- locationparameter
- AzureLocation
The ___location name.
- content
- SubmitDeallocateContent
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content is null.