Share via


IVirtualMachineOperations.BeginShuttingDownRolesAsync Method (String, String, VirtualMachineShutdownRolesParameters, CancellationToken)

 

Asynchronously initiates a shutdown of multiple Virtual Machines.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

Task<AzureOperationResponse> BeginShuttingDownRolesAsync(
    string serviceName,
    string deploymentName,
    VirtualMachineShutdownRolesParameters parameters,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ BeginShuttingDownRolesAsync(
    String^ serviceName,
    String^ deploymentName,
    VirtualMachineShutdownRolesParameters^ parameters,
    CancellationToken cancellationToken
)
abstract BeginShuttingDownRolesAsync : 
        serviceName:string *
        deploymentName:string *
        parameters:VirtualMachineShutdownRolesParameters *
        cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function BeginShuttingDownRolesAsync (
    serviceName As String,
    deploymentName As String,
    parameters As VirtualMachineShutdownRolesParameters,
    cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)

Parameters

  • serviceName
    Type: System.String

    The name of the cloud service that contains the Virtual Machines.

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

An OperationResponse object that includes an HTTP status code and request ID.

Remarks

For more information about shutting down multiple Virtual Machines, see the following resources:

See Also

IVirtualMachineOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top