VirtualMachineOperationsExtensions.BeginShuttingDownRolesAsync Method (IVirtualMachineOperations, String, String, VirtualMachineShutdownRolesParameters)
Asynchronously initiates a shutdown of multiple Virtual Machines.
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
<ExtensionAttribute> Public Shared Function BeginShuttingDownRolesAsync ( operations As IVirtualMachineOperations, serviceName As String, deploymentName As String, parameters As VirtualMachineShutdownRolesParameters ) As Task(Of AzureOperationResponse)
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations
The IVirtualMachineOperations object that specifies the operations for managing Virtual Machines.
- serviceName
-
Type:
System.String
The name of the cloud service that contains the Virtual Machines.
- deploymentName
-
Type:
System.String
The name of the deployment.
- parameters
-
Type:
Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineShutdownRolesParameters
The VirtualMachineShutdownRolesParameters object that contains the list of Virtual Machines to shut down.
Return Value
Type: System.Threading.Tasks.Task(Of AzureOperationResponse)An OperationResponse object that includes an HTTP status code and request ID.
For more information about shutting down multiple Virtual Machines, see the following resources:
Show: