Partilhar via


CloudServicesOperationsExtensions.RestartAsync Método

Definição

Reinicia uma ou mais instâncias de função em um serviço de nuvem.

public static System.Threading.Tasks.Task RestartAsync (this Microsoft.Azure.Management.Compute.ICloudServicesOperations operations, string resourceGroupName, string cloudServiceName, System.Collections.Generic.IList<string> roleInstancesProperty, System.Threading.CancellationToken cancellationToken = default);
static member RestartAsync : Microsoft.Azure.Management.Compute.ICloudServicesOperations * string * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function RestartAsync (operations As ICloudServicesOperations, resourceGroupName As String, cloudServiceName As String, roleInstancesProperty As IList(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task

Parâmetros

operations
ICloudServicesOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

Nome do grupo de recursos.

cloudServiceName
String

Nome do serviço de nuvem.

roleInstancesProperty
IList<String>

Lista de nomes de instância de função de serviço de nuvem. O valor de '*' significará todas as instâncias de função do serviço de nuvem.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a