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

VirtualMachineScaleSetOSProfile.CustomData 属性

定义

获取或设置指定自定义数据的 base-64 编码字符串。 Base-64 编码的字符串将解码为一个二元数组并作为一个文件保存在虚拟机上。 该二元数组的最大长度为 65535 字节。 有关对 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

适用于