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