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.StringThe name of the cloud service that contains the Virtual Machines.
deploymentName
Type: System.StringThe name of the deployment.
parameters
Type: Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineShutdownRolesParametersThe VirtualMachineShutdownRolesParameters object that contains the list of Virtual Machines to shut down.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
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