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

SshPublicKeyUpdateResource 构造函数

定义

重载

SshPublicKeyUpdateResource()

初始化 SshPublicKeyUpdateResource 类的新实例。

SshPublicKeyUpdateResource(IDictionary<String,String>, String)

初始化 SshPublicKeyUpdateResource 类的新实例。

SshPublicKeyUpdateResource()

初始化 SshPublicKeyUpdateResource 类的新实例。

public SshPublicKeyUpdateResource ();
Public Sub New ()

适用于

SshPublicKeyUpdateResource(IDictionary<String,String>, String)

初始化 SshPublicKeyUpdateResource 类的新实例。

public SshPublicKeyUpdateResource (System.Collections.Generic.IDictionary<string,string> tags = default, string publicKey = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.SshPublicKeyUpdateResource : System.Collections.Generic.IDictionary<string, string> * string -> Microsoft.Azure.Management.Compute.Fluent.Models.SshPublicKeyUpdateResource
Public Sub New (Optional tags As IDictionary(Of String, String) = Nothing, Optional publicKey As String = Nothing)

参数

tags
IDictionary<String,String>

资源标记

publicKey
String

用于通过 ssh 向虚拟机进行身份验证的 SSH 公钥。 如果在创建资源时最初未提供此属性,则调用 generateKeyPair 时将填充 publicKey 属性。 如果在创建资源时提供公钥,则提供的公钥需要至少为 2048 位且采用 ssh-rsa 格式。

适用于