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

OSProfile.CustomData 属性

定义

获取或设置指定自定义数据的 base-64 编码字符串。 Base-64 编码的字符串将解码为一个二元数组并作为一个文件保存在虚拟机上。 该二元数组的最大长度为 65535 字节。 注意:请勿在 customData 属性中传递任何机密或密码。 创建 VM 后,无法更新此属性。 属性“customData”将传递给 VM 以保存为文件,有关详细信息,请参阅 Azure VM 上的自定义数据。 有关对 Linux VM 使用 cloud-init,请参阅 在创建期间使用 cloud-init 自定义 Linux VM

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

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于