ComputeBulkActionsExtensions.BulkDeallocateOperation Method

Definition

BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. <item> Mocking. To mock this method, please mock BulkDeallocateOperation(AzureLocation, ExecuteDeallocateContent, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.DeallocateResourceOperationResult> BulkDeallocateOperation(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.BulkActions.Models.ExecuteDeallocateContent content, System.Threading.CancellationToken cancellationToken = default);
static member BulkDeallocateOperation : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.Compute.BulkActions.Models.ExecuteDeallocateContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.DeallocateResourceOperationResult>
<Extension()>
Public Function BulkDeallocateOperation (resourceGroupResource As ResourceGroupResource, location As AzureLocation, content As ExecuteDeallocateContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DeallocateResourceOperationResult)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

location
AzureLocation

The location name.

content
ExecuteDeallocateContent

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to