ComputeBulkActionsExtensions.BulkDeleteOperation 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 BulkDeleteOperation(AzureLocation, ExecuteDeleteContent, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.DeleteResourceOperationResult> BulkDeleteOperation(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.BulkActions.Models.ExecuteDeleteContent content, System.Threading.CancellationToken cancellationToken = default);
static member BulkDeleteOperation : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * Azure.ResourceManager.Compute.BulkActions.Models.ExecuteDeleteContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.DeleteResourceOperationResult>
<Extension()>
Public Function BulkDeleteOperation (resourceGroupResource As ResourceGroupResource, location As AzureLocation, content As ExecuteDeleteContent, Optional cancellationToken As CancellationToken = Nothing) As 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.