ComputeBulkActionsExtensions.BulkDeleteOperationAsync 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.
Delete one or more virtual machines. This operation is destructive. Bulk Actions begins processing the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get operation status updates. <item> Mocking. To mock this method, please mock BulkDeleteOperationAsync(AzureLocation, ExecuteDeleteContent, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.DeleteResourceOperationResult>> BulkDeleteOperationAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.BulkActions.Models.ExecuteDeleteContent content, System.Threading.CancellationToken cancellationToken = default);
static member BulkDeleteOperationAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.Compute.BulkActions.Models.ExecuteDeleteContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.DeleteResourceOperationResult>>
<Extension()>
Public Function BulkDeleteOperationAsync (resourceGroupResource As ResourceGroupResource, location As AzureLocation, content As ExecuteDeleteContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DeleteResourceOperationResult))
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- location
- AzureLocation
The location name.
- content
- ExecuteDeleteContent
The virtual machines to delete and the execution settings for the bulk action.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource is null.