CollectionOperationsExtensions.RestartVmAsync Method

Definition

Restarts VM associated with a collection.

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId> RestartVmAsync (this Microsoft.WindowsAzure.Management.RemoteApp.ICollectionOperations operations, string collectionName, Microsoft.WindowsAzure.Management.RemoteApp.Models.RestartVmCommandParameter details);
static member RestartVmAsync : Microsoft.WindowsAzure.Management.RemoteApp.ICollectionOperations * string * Microsoft.WindowsAzure.Management.RemoteApp.Models.RestartVmCommandParameter -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.RemoteApp.Models.OperationResultWithTrackingId>
<Extension()>
Public Function RestartVmAsync (operations As ICollectionOperations, collectionName As String, details As RestartVmCommandParameter) As Task(Of OperationResultWithTrackingId)

Parameters

operations
ICollectionOperations

Reference to the Microsoft.WindowsAzure.Management.RemoteApp.ICollectionOperations.

collectionName
String

Required. The RemoteApp collection name containing the VM to be restarted.

details
RestartVmCommandParameter

Required. The details of VM to be restarted.

Returns

The response containing the operation tracking id.

Applies to