通过


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

UserAccount interface

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

属性

elevationLevel

用户帐户的提升级别。 默认值为 nonAdmin。

可能的值:“nonadmin”、“admin”

linuxUserConfiguration

用户帐户的特定于 Linux 的用户配置。 如果在 Windows 池上指定,则忽略此属性。 如果未指定,则使用默认选项创建用户。

name

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

password

用户帐户的密码。

windowsUserConfiguration

用户帐户的特定于 Windows 的用户配置。 仅当用户在 Windows 池上时,才能指定此属性。 如果未指定且在 Windows 池上,则会使用默认选项创建用户。

属性详细信息

elevationLevel

用户帐户的提升级别。 默认值为 nonAdmin。

可能的值:“nonadmin”、“admin”

elevationLevel?: string

属性值

string

linuxUserConfiguration

用户帐户的特定于 Linux 的用户配置。 如果在 Windows 池上指定,则忽略此属性。 如果未指定,则使用默认选项创建用户。

linuxUserConfiguration?: LinuxUserConfiguration

属性值

name

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

name: string

属性值

string

password

用户帐户的密码。

password: string

属性值

string

windowsUserConfiguration

用户帐户的特定于 Windows 的用户配置。 仅当用户在 Windows 池上时,才能指定此属性。 如果未指定且在 Windows 池上,则会使用默认选项创建用户。

windowsUserConfiguration?: WindowsUserConfiguration

属性值