Skip to content

Commit 1695bb0

Browse files
najagasiNamrata JagasiamsJinLeimsJinLei
authored
Fix top value when top is not provided (#14051)
* Fix top value when max is not provided * Fix changelog.md error * Update ChangeLog.md Co-authored-by: Namrata Jagasia <[email protected]> Co-authored-by: msJinLei <[email protected]> Co-authored-by: Jin Lei <[email protected]>
1 parent a037261 commit 1695bb0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/PolicyInsights/PolicyInsights/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Retracted changes made in powershell that increased request row limit. Removed incorrect statement of supporting paging
2122

2223
## Version 1.4.0
2324
* Added support for returning paginated results for Get-AzPolicyState

src/PolicyInsights/PolicyInsights/Cmdlets/GetAzureRmPolicyState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public override void Execute()
160160
{
161161
var queryOptions = new RestApiModels.QueryOptions
162162
{
163-
Top = MyInvocation.BoundParameters.ContainsKey("Top") ? (int?)Top : int.MaxValue,
163+
Top = MyInvocation.BoundParameters.ContainsKey("Top") ? (int?)Top : null,
164164
OrderBy = OrderBy,
165165
Select = Select,
166166
FromProperty = MyInvocation.BoundParameters.ContainsKey("From") ? (DateTime?)From : null,

0 commit comments

Comments
 (0)