MockableComputeBulkActionsResourceGroupResource.BulkReimageOperationAsync 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.
This feature is currently in preview. Reimage one or more virtual machines. Reimaging is destructive and can replace operating system disk contents. 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.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/virtualMachinesBulkReimage.
- Operation Id. : VirtualMachineBulkOperations_BulkReimage.
- Default Api Version. : 2026-10-06-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.BulkActionsReimageResourceOperationResponseResult>> BulkReimageOperationAsync(Azure.Core.AzureLocation location, Azure.ResourceManager.Compute.BulkActions.Models.BulkActionsExecuteReimageRequestContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member BulkReimageOperationAsync : Azure.Core.AzureLocation * Azure.ResourceManager.Compute.BulkActions.Models.BulkActionsExecuteReimageRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.BulkActionsReimageResourceOperationResponseResult>>
override this.BulkReimageOperationAsync : Azure.Core.AzureLocation * Azure.ResourceManager.Compute.BulkActions.Models.BulkActionsExecuteReimageRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.BulkActions.Models.BulkActionsReimageResourceOperationResponseResult>>
Public Overridable Function BulkReimageOperationAsync (location As AzureLocation, content As BulkActionsExecuteReimageRequestContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BulkActionsReimageResourceOperationResponseResult))
Parameters
- location
- AzureLocation
The location name.
The virtual machines to reimage and the execution settings for the bulk action.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content is null.