Skip to content

Commit 5af6ca5

Browse files
grizzlytheodoreTheodore Chang
andauthored
fix Get-AzVmRunCommand bug (#22460)
* fix bug * changelog --------- Co-authored-by: Theodore Chang <[email protected]>
1 parent e991238 commit 5af6ca5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
2121
-->
2222
## Upcoming Release
23+
* For `Get-AzVmRunCommand`, a bug is fixed to work when returning a list of RunCommands [#22403]
2324
* Updated Azure.Core to 1.34.0.
2425

2526
## Version 6.2.0

src/Compute/Compute/VirtualMachine/RunCommand/GetAzVmRunCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public override void ExecuteCmdlet()
8686
}
8787
nextPageLink = pageResult.NextPageLink;
8888
}
89-
var psObject = new List<PSVirtualMachineRunCommand>();
89+
var psObject = new List<PSVirtualMachineRunCommandList>();
9090
foreach (var r in resultList)
9191
{
9292
psObject.Add(ComputeAutomationAutoMapperProfile.Mapper.Map<VirtualMachineRunCommand, PSVirtualMachineRunCommandList>(r));

0 commit comments

Comments
 (0)