File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
src/ResourceManager/Compute/Commands.Compute Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 19
19
- Additional information about change #1
20
20
-->
21
21
## Current Release
22
+ * Fix Get-AzureRmVM -ResourceGroupName <rg > to return more than 50 results if needed
22
23
* Added an example of the ` SimpleParameterSet ` to New-AzureRmVmss cmdlet help.
23
24
* Fixed a typo in the Azure Disk Encryption progress message
24
25
Original file line number Diff line number Diff line change @@ -158,7 +158,21 @@ public override void ExecuteCmdlet()
158
158
. GetAwaiter ( ) . GetResult ( ) ;
159
159
160
160
var psResultListStatus = new List < PSVirtualMachineListStatus > ( ) ;
161
- psResultListStatus = GetPowerstate ( vmListResult , psResultListStatus ) ;
161
+
162
+ while ( vmListResult != null )
163
+ {
164
+ psResultListStatus = GetPowerstate ( vmListResult , psResultListStatus ) ;
165
+
166
+ if ( ! string . IsNullOrEmpty ( vmListResult . Body . NextPageLink ) )
167
+ {
168
+ vmListResult = this . VirtualMachineClient . ListNextWithHttpMessagesAsync ( vmListResult . Body . NextPageLink )
169
+ . GetAwaiter ( ) . GetResult ( ) ;
170
+ }
171
+ else
172
+ {
173
+ vmListResult = null ;
174
+ }
175
+ }
162
176
163
177
if ( this . Status . IsPresent )
164
178
{
You can’t perform that action at this time.
0 commit comments