MockableComputeScheduleSubscriptionResource.CancelVirtualMachineOperations 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.
VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations
- Operation Id: ScheduledActions_CancelVirtualMachineOperations
- Default Api Version: 2025-04-15-preview
- Resource: ScheduledActionResource
public virtual Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.CancelOperationsResult> CancelVirtualMachineOperations(Azure.Core.AzureLocation locationparameter, Azure.ResourceManager.ComputeSchedule.Models.CancelOperationsContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelVirtualMachineOperations : Azure.Core.AzureLocation * Azure.ResourceManager.ComputeSchedule.Models.CancelOperationsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.CancelOperationsResult>
override this.CancelVirtualMachineOperations : Azure.Core.AzureLocation * Azure.ResourceManager.ComputeSchedule.Models.CancelOperationsContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ComputeSchedule.Models.CancelOperationsResult>
Public Overridable Function CancelVirtualMachineOperations (locationparameter As AzureLocation, content As CancelOperationsContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CancelOperationsResult)
Parameters
- locationparameter
- AzureLocation
The location name.
- content
- CancelOperationsContent
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content is null.