Skip to content

Commit b77b0f9

Browse files
author
jasper-schneider
committed
Rename 'User' to 'VMUser'
1 parent 039c8ae commit b77b0f9

File tree

16 files changed

+57
-57
lines changed

16 files changed

+57
-57
lines changed

src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="..\..\..\packages\xunit.runner.visualstudio.2.0.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\..\packages\xunit.runner.visualstudio.2.0.0\build\net20\xunit.runner.visualstudio.props')" />
44
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
@@ -171,14 +171,14 @@
171171
<Compile Include="ScenarioTests\PoolTests.cs" />
172172
<Compile Include="ScenarioTests\ScenarioTestHelpers.cs" />
173173
<Compile Include="ScenarioTests\TaskTests.cs" />
174-
<Compile Include="ScenarioTests\UserTests.cs" />
174+
<Compile Include="ScenarioTests\VMUserTests.cs" />
175175
<Compile Include="ScenarioTests\VMTests.cs" />
176176
<Compile Include="ScenarioTests\WorkItemTests.cs" />
177177
<Compile Include="Tasks\GetBatchTaskCommandTests.cs" />
178178
<Compile Include="Tasks\NewBatchTaskCommandTests.cs" />
179179
<Compile Include="Tasks\RemoveBatchTaskCommandTests.cs" />
180-
<Compile Include="Users\NewBatchUserCommandTests.cs" />
181-
<Compile Include="Users\RemoveBatchUserCommandTests.cs" />
180+
<Compile Include="VMUsers\NewBatchVMUserCommandTests.cs" />
181+
<Compile Include="VMUsers\RemoveBatchVMUserCommandTests.cs" />
182182
<Compile Include="VMs\GetBatchVMCommandTests.cs" />
183183
<Compile Include="WorkItems\GetBatchWorkItemCommandTests.cs" />
184184
<Compile Include="WorkItems\NewBatchWorkItemCommandTests.cs" />
@@ -207,7 +207,7 @@
207207
<None Include="ScenarioTests\TaskTests.ps1">
208208
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
209209
</None>
210-
<None Include="ScenarioTests\UserTests.ps1">
210+
<None Include="ScenarioTests\VMUserTests.ps1">
211211
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
212212
</None>
213213
<None Include="ScenarioTests\VMTests.ps1">
@@ -351,13 +351,13 @@
351351
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.TaskTests\TestListTasksWithMaxCount.json">
352352
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
353353
</None>
354-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.UserTests\TestCreateUser.json">
354+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests\TestCreateUser.json">
355355
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
356356
</None>
357-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.UserTests\TestCreateUserPipeline.json">
357+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests\TestCreateUserPipeline.json">
358358
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
359359
</None>
360-
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.UserTests\TestDeleteUser.json">
360+
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMUserTests\TestDeleteUser.json">
361361
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
362362
</None>
363363
<None Include="SessionRecords\Microsoft.Azure.Commands.Batch.Test.ScenarioTests.VMTests\TestGetVMByName.json">

src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public static void CreateTestUser(BatchController controller, BatchAccountContex
272272
BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor };
273273
BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient);
274274

275-
NewUserParameters parameters = new NewUserParameters()
275+
NewVMUserParameters parameters = new NewVMUserParameters()
276276
{
277277
Context = context,
278278
PoolName = poolName,
@@ -282,7 +282,7 @@ public static void CreateTestUser(BatchController controller, BatchAccountContex
282282
AdditionalBehaviors = behaviors
283283
};
284284

285-
client.CreateUser(parameters);
285+
client.CreateVMUser(parameters);
286286
}
287287

288288
/// <summary>
@@ -294,15 +294,15 @@ public static void DeleteUser(BatchController controller, BatchAccountContext co
294294
BatchClientBehavior[] behaviors = new BatchClientBehavior[] { interceptor };
295295
BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient);
296296

297-
RemoveUserParameters parameters = new RemoveUserParameters()
297+
RemoveVMUserParameters parameters = new RemoveVMUserParameters()
298298
{
299299
Context = context,
300300
PoolName = poolName,
301301
VMName = vmName,
302302
UserName = userName,
303303
AdditionalBehaviors = behaviors
304304
};
305-
client.DeleteUser(parameters);
305+
client.DeleteVMUser(parameters);
306306
}
307307

308308
/// <summary>

src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/UserTests.cs renamed to src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMUserTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests
2727
{
28-
public class UserTests
28+
public class VMUserTests
2929
{
3030
// NOTE: To save time on VM allocation when recording, these tests assume the following:
3131
// - A Batch account named 'usertests' exists under the subscription being used for recording.
@@ -94,8 +94,8 @@ public void TestDeleteUser()
9494
}
9595

9696
// Cmdlets that use the HTTP Recorder interceptor for use with scenario tests
97-
[Cmdlet(VerbsCommon.New, "AzureBatchUser_ST")]
98-
public class NewBatchUserScenarioTestCommand : NewBatchUserCommand
97+
[Cmdlet(VerbsCommon.New, "AzureBatchVMUser_ST")]
98+
public class NewBatchVMUserScenarioTestCommand : NewBatchVMUserCommand
9999
{
100100
public override void ExecuteCmdlet()
101101
{
@@ -104,8 +104,8 @@ public override void ExecuteCmdlet()
104104
}
105105
}
106106

107-
[Cmdlet(VerbsCommon.Remove, "AzureBatchUser_ST")]
108-
public class RemoveBatchUserScenarioTestCommand : RemoveBatchUserCommand
107+
[Cmdlet(VerbsCommon.Remove, "AzureBatchVMUser_ST")]
108+
public class RemoveBatchVMUserScenarioTestCommand : RemoveBatchVMUserCommand
109109
{
110110
public override void ExecuteCmdlet()
111111
{

src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/UserTests.ps1 renamed to src/ResourceManager/Batch/Commands.Batch.Test/ScenarioTests/VMUserTests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ function Test-CreateUser
2828
{
2929
$expiryTime = [DateTime]::Now.AddDays(5)
3030
$vm = Get-AzureBatchVM_ST $poolName $vmName -BatchContext $context
31-
$vm | New-AzureBatchUser_ST -Name $userName -Password $password -ExpiryTime $expiryTime -IsAdmin -BatchContext $context
31+
$vm | New-AzureBatchVMUser_ST -Name $userName -Password $password -ExpiryTime $expiryTime -IsAdmin -BatchContext $context
3232
}
3333
else
3434
{
35-
New-AzureBatchUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Password $password -BatchContext $context
35+
New-AzureBatchVMUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Password $password -BatchContext $context
3636
}
3737

3838
# Verify that a user was created
3939
# There is currently no Get/List user API, so try to create the user again and verify that it fails.
40-
Assert-Throws { New-AzureBatchUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Password $password -BatchContext $context }
40+
Assert-Throws { New-AzureBatchVMUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Password $password -BatchContext $context }
4141
}
4242

4343
<#
@@ -50,7 +50,7 @@ function Test-DeleteUser
5050

5151
$context = Get-AzureBatchAccountKeys -Name $accountName
5252

53-
Remove-AzureBatchUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Force -BatchContext $context
53+
Remove-AzureBatchVMUser_ST -PoolName $poolName -VMName $vmName -Name $userName -Force -BatchContext $context
5454

5555
# Verify the user was deleted
5656
# There is currently no Get/List user API, so try to delete the user again and verify that it fails.

src/ResourceManager/Batch/Commands.Batch.Test/Users/NewBatchUserCommandTests.cs renamed to src/ResourceManager/Batch/Commands.Batch.Test/VMUsers/NewBatchVMUserCommandTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727

2828
namespace Microsoft.Azure.Commands.Batch.Test.Users
2929
{
30-
public class NewBatchUserCommandTests
30+
public class NewBatchVMUserCommandTests
3131
{
32-
private NewBatchUserCommand cmdlet;
32+
private NewBatchVMUserCommand cmdlet;
3333
private Mock<BatchClient> batchClientMock;
3434
private Mock<ICommandRuntime> commandRuntimeMock;
3535

36-
public NewBatchUserCommandTests()
36+
public NewBatchVMUserCommandTests()
3737
{
3838
batchClientMock = new Mock<BatchClient>();
3939
commandRuntimeMock = new Mock<ICommandRuntime>();
40-
cmdlet = new NewBatchUserCommand()
40+
cmdlet = new NewBatchVMUserCommand()
4141
{
4242
CommandRuntime = commandRuntimeMock.Object,
4343
BatchClient = batchClientMock.Object,
@@ -46,7 +46,7 @@ public NewBatchUserCommandTests()
4646

4747
[Fact]
4848
[Trait(Category.AcceptanceType, Category.CheckIn)]
49-
public void NewBatchUserParametersTest()
49+
public void NewBatchVMUserParametersTest()
5050
{
5151
// Setup cmdlet without the required parameters
5252
BatchAccountContext context = BatchTestHelpers.CreateBatchContextWithKeys();

src/ResourceManager/Batch/Commands.Batch.Test/Users/RemoveBatchUserCommandTests.cs renamed to src/ResourceManager/Batch/Commands.Batch.Test/VMUsers/RemoveBatchVMUserCommandTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626

2727
namespace Microsoft.Azure.Commands.Batch.Test.Users
2828
{
29-
public class RemoveBatchUserCommandTests
29+
public class RemoveBatchVMUserCommandTests
3030
{
31-
private RemoveBatchUserCommand cmdlet;
31+
private RemoveBatchVMUserCommand cmdlet;
3232
private Mock<BatchClient> batchClientMock;
3333
private Mock<ICommandRuntime> commandRuntimeMock;
3434

35-
public RemoveBatchUserCommandTests()
35+
public RemoveBatchVMUserCommandTests()
3636
{
3737
batchClientMock = new Mock<BatchClient>();
3838
commandRuntimeMock = new Mock<ICommandRuntime>();
39-
cmdlet = new RemoveBatchUserCommand()
39+
cmdlet = new RemoveBatchVMUserCommand()
4040
{
4141
CommandRuntime = commandRuntimeMock.Object,
4242
BatchClient = batchClientMock.Object,

src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
<Compile Include="Models\BatchClient.Jobs.cs" />
158158
<Compile Include="Models\BatchClient.Pools.cs" />
159159
<Compile Include="Models\BatchClient.Tasks.cs" />
160-
<Compile Include="Models\BatchClient.Users.cs" />
160+
<Compile Include="Models\BatchClient.VMUsers.cs" />
161161
<Compile Include="Models\BatchClient.VMs.cs" />
162162
<Compile Include="Models\BatchClient.WorkItems.cs" />
163163
<Compile Include="Models\BatchClientParametersBase.cs" />
@@ -171,7 +171,7 @@
171171
<Compile Include="Models\ListWorkItemOptions.cs" />
172172
<Compile Include="Models\NewPoolParameters.cs" />
173173
<Compile Include="Models\NewTaskParameters.cs" />
174-
<Compile Include="Models\NewUserParameters.cs" />
174+
<Compile Include="Models\NewVMUserParameters.cs" />
175175
<Compile Include="Models\NewWorkItemParameters.cs" />
176176
<Compile Include="Models\PSAffinityInformation.cs" />
177177
<Compile Include="Models\PSAsyncEnumerable.cs" />
@@ -221,7 +221,7 @@
221221
<Compile Include="Models\PSWorkItemStatistics.cs" />
222222
<Compile Include="Models\RemoveJobParameters.cs" />
223223
<Compile Include="Models\RemoveTaskParameters.cs" />
224-
<Compile Include="Models\RemoveUserParameters.cs" />
224+
<Compile Include="Models\RemoveVMUserParameters.cs" />
225225
<Compile Include="Pools\GetBatchPoolCommand.cs" />
226226
<Compile Include="Pools\NewBatchPoolCommand.cs" />
227227
<Compile Include="Pools\RemoveBatchPoolCommand.cs" />
@@ -234,8 +234,8 @@
234234
<Compile Include="Tasks\GetBatchTaskCommand.cs" />
235235
<Compile Include="Tasks\NewBatchTaskCommand.cs" />
236236
<Compile Include="Tasks\RemoveBatchTaskCommand.cs" />
237-
<Compile Include="Users\NewBatchUserCommand.cs" />
238-
<Compile Include="Users\RemoveBatchUserCommand.cs" />
237+
<Compile Include="VMUsers\NewBatchVMUserCommand.cs" />
238+
<Compile Include="VMUsers\RemoveBatchVMUserCommand.cs" />
239239
<Compile Include="Utils\Constants.cs" />
240240
<Compile Include="Utils\Utils.cs" />
241241
<Compile Include="VMs\GetBatchVMCommand.cs" />

src/ResourceManager/Batch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6043,7 +6043,7 @@
60436043
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10">
60446044
<command:details>
60456045
<command:name>
6046-
New-AzureBatchUser
6046+
New-AzureBatchVMUser
60476047
</command:name>
60486048
<maml:description>
60496049
<maml:para>Creates a new user on the specified Azure Batch vm.</maml:para>
@@ -6052,7 +6052,7 @@
60526052
<maml:para></maml:para>
60536053
</maml:copyright>
60546054
<command:verb>New</command:verb>
6055-
<command:noun>AzureBatchUser</command:noun>
6055+
<command:noun>AzureBatchVMUser</command:noun>
60566056
<dev:version></dev:version>
60576057
</command:details>
60586058
<maml:description>
@@ -6061,7 +6061,7 @@
60616061
<!-- Cmdlet syntax section-->
60626062
<command:syntax>
60636063
<command:syntaxItem>
6064-
<maml:name>New-AzureBatchUser</maml:name>
6064+
<maml:name>New-AzureBatchVMUser</maml:name>
60656065
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="1">
60666066
<maml:name>PoolName</maml:name>
60676067
<maml:description>
@@ -6119,7 +6119,7 @@
61196119
</command:parameter>
61206120
</command:syntaxItem>
61216121
<command:syntaxItem>
6122-
<maml:name>New-AzureBatchUser</maml:name>
6122+
<maml:name>New-AzureBatchVMUser</maml:name>
61236123
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByValue)" position="named">
61246124
<maml:name>BatchContext</maml:name>
61256125
<maml:description>
@@ -6334,7 +6334,7 @@
63346334
<maml:para>C:\PS&gt;</maml:para>
63356335
</maml:introduction>
63366336
<dev:code>
6337-
New-AzureBatchUser -PoolName &quot;myPool&quot; -VMName &quot;tvm-1900272697_1-20150330t205553z&quot; -Name &quot;testUser&quot; -Password &quot;Password1234!&quot; -ExpiryTime ([DateTime]::Now.AddDays(7)) -IsAdmin -BatchContext $context
6337+
New-AzureBatchVMUser -PoolName &quot;myPool&quot; -VMName &quot;tvm-1900272697_1-20150330t205553z&quot; -Name &quot;testUser&quot; -Password &quot;Password1234!&quot; -ExpiryTime ([DateTime]::Now.AddDays(7)) -IsAdmin -BatchContext $context
63386338
</dev:code>
63396339
<dev:remarks>
63406340
<maml:para>Description</maml:para>
@@ -6360,7 +6360,7 @@
63606360
<maml:para>C:\PS&gt;</maml:para>
63616361
</maml:introduction>
63626362
<dev:code>
6363-
Get-AzureBatchVM &quot;myPool&quot; &quot;tvm-1900272697_1-20150330t205553z&quot; -BatchContext $context | New-AzureBatchUser -Name &quot;testUser&quot; -Password &quot;Password1234!&quot; -BatchContext $context
6363+
Get-AzureBatchVM &quot;myPool&quot; &quot;tvm-1900272697_1-20150330t205553z&quot; -BatchContext $context | New-AzureBatchVMUser -Name &quot;testUser&quot; -Password &quot;Password1234!&quot; -BatchContext $context
63646364
</dev:code>
63656365
<dev:remarks>
63666366
<maml:para>Description</maml:para>
@@ -6389,7 +6389,7 @@
63896389
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10">
63906390
<command:details>
63916391
<command:name>
6392-
Remove-AzureBatchUser
6392+
Remove-AzureBatchVMUser
63936393
</command:name>
63946394
<maml:description>
63956395
<maml:para>Deletes the specified user account from the specified Azure Batch vm.</maml:para>
@@ -6398,7 +6398,7 @@
63986398
<maml:para></maml:para>
63996399
</maml:copyright>
64006400
<command:verb>Remove</command:verb>
6401-
<command:noun>AzureBatchUser</command:noun>
6401+
<command:noun>AzureBatchVMUser</command:noun>
64026402
<dev:version></dev:version>
64036403
</command:details>
64046404
<maml:description>
@@ -6407,7 +6407,7 @@
64076407
<!-- Cmdlet syntax section-->
64086408
<command:syntax>
64096409
<command:syntaxItem>
6410-
<maml:name>Remove-AzureBatchUser</maml:name>
6410+
<maml:name>Remove-AzureBatchVMUser</maml:name>
64116411
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="1">
64126412
<maml:name>PoolName</maml:name>
64136413
<maml:description>
@@ -6562,7 +6562,7 @@
65626562
<maml:para>C:\PS&gt;</maml:para>
65636563
</maml:introduction>
65646564
<dev:code>
6565-
Remove-AzureBatchUser -PoolName &quot;myPool&quot; -VMName &quot;tvm-1900272697_1-20150330t205553z&quot; -Name &quot;myUser&quot; -Force -BatchContext $context
6565+
Remove-AzureBatchVMUser -PoolName &quot;myPool&quot; -VMName &quot;tvm-1900272697_1-20150330t205553z&quot; -Name &quot;myUser&quot; -Force -BatchContext $context
65666566
</dev:code>
65676567
<dev:remarks>
65686568
<maml:para>Description</maml:para>

src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.Users.cs renamed to src/ResourceManager/Batch/Commands.Batch/Models/BatchClient.VMUsers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public partial class BatchClient
2727
/// Creates a new user
2828
/// </summary>
2929
/// <param name="options">The options to use when creating the user</param>
30-
public void CreateUser(NewUserParameters options)
30+
public void CreateVMUser(NewVMUserParameters options)
3131
{
3232
if (options == null)
3333
{
@@ -70,7 +70,7 @@ public void CreateUser(NewUserParameters options)
7070
/// Deletes the specified user
7171
/// </summary>
7272
/// <param name="parameters">The parameters indicating which user to delete</param>
73-
public void DeleteUser(RemoveUserParameters parameters)
73+
public void DeleteVMUser(RemoveVMUserParameters parameters)
7474
{
7575
if (parameters == null)
7676
{

src/ResourceManager/Batch/Commands.Batch/Models/NewUserParameters.cs renamed to src/ResourceManager/Batch/Commands.Batch/Models/NewVMUserParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
namespace Microsoft.Azure.Commands.Batch.Models
2121
{
22-
public class NewUserParameters : BatchClientParametersBase
22+
public class NewVMUserParameters : BatchClientParametersBase
2323
{
2424
/// <summary>
2525
/// The name of the pool containing the vm to create the user on.

src/ResourceManager/Batch/Commands.Batch/Models/RemoveUserParameters.cs renamed to src/ResourceManager/Batch/Commands.Batch/Models/RemoveVMUserParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Microsoft.Azure.Commands.Batch.Models
1919
{
20-
public class RemoveUserParameters : BatchClientParametersBase
20+
public class RemoveVMUserParameters : BatchClientParametersBase
2121
{
2222
/// <summary>
2323
/// The name of the pool containing the vm

src/ResourceManager/Batch/Commands.Batch/Users/NewBatchUserCommand.cs renamed to src/ResourceManager/Batch/Commands.Batch/VMUsers/NewBatchVMUserCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
namespace Microsoft.Azure.Commands.Batch
2323
{
24-
[Cmdlet(VerbsCommon.New, "AzureBatchUser")]
25-
public class NewBatchUserCommand : BatchObjectModelCmdletBase
24+
[Cmdlet(VerbsCommon.New, "AzureBatchVMUser")]
25+
public class NewBatchVMUserCommand : BatchObjectModelCmdletBase
2626
{
2727
[Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, HelpMessage = "The name of the pool containing the vm to create the user on.")]
2828
[ValidateNotNullOrEmpty]
@@ -53,7 +53,7 @@ public class NewBatchUserCommand : BatchObjectModelCmdletBase
5353

5454
public override void ExecuteCmdlet()
5555
{
56-
NewUserParameters parameters = new NewUserParameters()
56+
NewVMUserParameters parameters = new NewVMUserParameters()
5757
{
5858
Context = this.BatchContext,
5959
PoolName = this.PoolName,
@@ -66,7 +66,7 @@ public override void ExecuteCmdlet()
6666
AdditionalBehaviors = this.AdditionalBehaviors
6767
};
6868

69-
BatchClient.CreateUser(parameters);
69+
BatchClient.CreateVMUser(parameters);
7070
}
7171
}
7272
}

0 commit comments

Comments
 (0)