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

SshPublicKeyResource 构造函数

定义

重载

SshPublicKeyResource()

初始化 SshPublicKeyResource 类的新实例。

SshPublicKeyResource(String, String, String, String, IDictionary<String,String>, String)

初始化 SshPublicKeyResource 类的新实例。

SshPublicKeyResource()

初始化 SshPublicKeyResource 类的新实例。

public SshPublicKeyResource ();
Public Sub New ()

适用于

SshPublicKeyResource(String, String, String, String, IDictionary<String,String>, String)

初始化 SshPublicKeyResource 类的新实例。

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

参数

location
String

资源位置

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

publicKey
String

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

适用于