UserAccount interface
用于创建用户的属性,用于在 Azure Batch 计算节点上执行任务。
属性
| elevation |
用户账户的海拔等级。 默认值为 nonAdmin。 |
| linux |
Linux专用的用户配置。 如果在 Windows 池中指定了该属性,则会被忽略。 如果未指定,则使用默认选项创建用户。 |
| name | 用户账户名称。 名称可以包含最大长度为 20 的任何 Unicode 字符。 |
| password | 用户账户的密码。 |
| windows |
Windows专用用户账户配置。 该属性只能在用户处于 Windows 池中时指定。 如果未指定且在 Windows 池中,用户将以默认选项创建。 |
属性详细信息
elevationLevel
linuxUserConfiguration
Linux专用的用户配置。 如果在 Windows 池中指定了该属性,则会被忽略。 如果未指定,则使用默认选项创建用户。
linuxUserConfiguration?: LinuxUserConfiguration
属性值
name
用户账户名称。 名称可以包含最大长度为 20 的任何 Unicode 字符。
name: string
属性值
string
password
用户账户的密码。
password: string
属性值
string
windowsUserConfiguration
Windows专用用户账户配置。 该属性只能在用户处于 Windows 池中时指定。 如果未指定且在 Windows 池中,用户将以默认选项创建。
windowsUserConfiguration?: WindowsUserConfiguration