2
2
title : Run tasks under user accounts
3
3
description : Learn the types of user accounts and how to configure them.
4
4
ms.topic : how-to
5
- ms.date : 05/16/2023
5
+ ms.date : 08/27/2024
6
6
ms.custom :
7
7
ms.devlang : csharp
8
8
# ms.devlang: csharp, java, python
@@ -159,8 +159,8 @@ pool = batchClient.PoolOperations.CreatePool(
159
159
// Add named user accounts.
160
160
pool .UserAccounts = new List <UserAccount >
161
161
{
162
- new UserAccount (" adminUser" , " xyz123 " , ElevationLevel .Admin ),
163
- new UserAccount (" nonAdminUser" , " 123xyz " , ElevationLevel .NonAdmin ),
162
+ new UserAccount (" adminUser" , " A1bC2d " , ElevationLevel .Admin ),
163
+ new UserAccount (" nonAdminUser" , " A1bC2d " , ElevationLevel .NonAdmin ),
164
164
};
165
165
166
166
// Commit the pool.
@@ -208,7 +208,7 @@ pool.UserAccounts = new List<UserAccount>
208
208
{
209
209
new UserAccount (
210
210
name : " adminUser" ,
211
- password : " xyz123 " ,
211
+ password : " A1bC2d " ,
212
212
elevationLevel : ElevationLevel .Admin ,
213
213
linuxUserConfiguration : new LinuxUserConfiguration (
214
214
uid : 12345 ,
@@ -217,7 +217,7 @@ pool.UserAccounts = new List<UserAccount>
217
217
)),
218
218
new UserAccount (
219
219
name : " nonAdminUser" ,
220
- password : " 123xyz " ,
220
+ password : " A1bC2d " ,
221
221
elevationLevel : ElevationLevel .NonAdmin ,
222
222
linuxUserConfiguration : new LinuxUserConfiguration (
223
223
uid : 45678 ,
@@ -251,11 +251,11 @@ batchClient.poolOperations().createPool(addParameter);
251
251
users = [
252
252
batchmodels .UserAccount (
253
253
name = 'pool-admin' ,
254
- password = '****** ' ,
254
+ password = 'A1bC2d ' ,
255
255
elevation_level = batchmodels .ElevationLevel .admin )
256
256
batchmodels .UserAccount (
257
257
name = 'pool-nonadmin' ,
258
- password = '****** ' ,
258
+ password = 'A1bC2d ' ,
259
259
elevation_level = batchmodels .ElevationLevel .non_admin )
260
260
]
261
261
pool = batchmodels .PoolAddParameter (
0 commit comments