ภาษา

ComputeBulkActionsExtensions.BulkStartOperationAsync Method

Definition

Start one or more virtual machines. 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 BulkStartOperationAsync(AzureLocation, ExecuteStartContent, CancellationToken) instead. </item>

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

location
AzureLocation

The location name.

content
ExecuteStartContent

The virtual machines to start and the execution settings for the bulk action.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to