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

SshPublicKeyResourceInner 构造函数

定义

重载

SshPublicKeyResourceInner()

初始化 SshPublicKeyResourceInner 类的新实例。

SshPublicKeyResourceInner(String, String, String, String, IDictionary<String,String>, String)

初始化 SshPublicKeyResourceInner 类的新实例。

SshPublicKeyResourceInner()

初始化 SshPublicKeyResourceInner 类的新实例。

public SshPublicKeyResourceInner ();
Public Sub New ()

适用于

SshPublicKeyResourceInner(String, String, String, String, IDictionary<String,String>, String)

初始化 SshPublicKeyResourceInner 类的新实例。

public SshPublicKeyResourceInner (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.Fluent.Models.SshPublicKeyResourceInner : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string -> Microsoft.Azure.Management.Compute.Fluent.Models.SshPublicKeyResourceInner
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
name
String
type
String
publicKey
String

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

适用于