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

屬性值