你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PoolOperations.GetRemoteLoginSettingsAsync 方法

定义

获取远程登录到计算节点所需的设置。

public System.Threading.Tasks.Task<Microsoft.Azure.Batch.RemoteLoginSettings> GetRemoteLoginSettingsAsync (string poolId, string computeNodeId, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetRemoteLoginSettingsAsync : string * string * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.RemoteLoginSettings>
Public Function GetRemoteLoginSettingsAsync (poolId As String, computeNodeId As String, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RemoteLoginSettings)

参数

poolId
String

包含计算节点的池的 ID。

computeNodeId
String

要为其获取远程桌面文件的计算节点的 ID。

additionalBehaviors
IEnumerable<BatchClientBehavior>

应用于 之后的 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors

cancellationToken
CancellationToken

一个 CancellationToken ,用于控制异步操作的生存期。

返回

表示异步操作的 Task

注解

获取远程登录设置操作以异步方式运行。

仅当使用 属性创建 VirtualMachineConfiguration 池时,才能调用此方法。 如果在使用 CloudServiceConfiguration创建的池上调用此方法,则 Batch 服务将返回 409 (冲突) 。 对于具有 属性的 CloudServiceConfiguration 池,必须使用 GetRDPFileAsync/GetRDPFile 方法之一。

适用于