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

UserAccount interface

用于创建用户的属性,用于在 Azure Batch 计算节点上执行任务。

属性

elevationLevel

用户账户的海拔等级。 默认值为 nonAdmin。

linuxUserConfiguration

Linux专用的用户配置。 如果在 Windows 池中指定了该属性,则会被忽略。 如果未指定,则使用默认选项创建用户。

name

用户账户名称。 名称可以包含最大长度为 20 的任何 Unicode 字符。

password

用户账户的密码。

windowsUserConfiguration

Windows专用用户账户配置。 该属性只能在用户处于 Windows 池中时指定。 如果未指定且在 Windows 池中,用户将以默认选项创建。

属性详细信息

elevationLevel

用户账户的海拔等级。 默认值为 nonAdmin。

elevationLevel?: ElevationLevel

属性值

linuxUserConfiguration

Linux专用的用户配置。 如果在 Windows 池中指定了该属性,则会被忽略。 如果未指定,则使用默认选项创建用户。

linuxUserConfiguration?: LinuxUserConfiguration

属性值

name

用户账户名称。 名称可以包含最大长度为 20 的任何 Unicode 字符。

name: string

属性值

string

password

用户账户的密码。

password: string

属性值

string

windowsUserConfiguration

Windows专用用户账户配置。 该属性只能在用户处于 Windows 池中时指定。 如果未指定且在 Windows 池中,用户将以默认选项创建。

windowsUserConfiguration?: WindowsUserConfiguration

属性值