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

SshPublicKeyResource.PublicKey 属性

定义

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

[Newtonsoft.Json.JsonProperty(PropertyName="properties.publicKey")]
public string PublicKey { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="properties.publicKey")>]
member this.PublicKey : string with get, set
Public Property PublicKey As String

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于