Skip to content

Commit dafc0d9

Browse files
authored
[Az.PolicyInsights] Returning paginated results from Get-AzPolicyState. (#13712)
* Allowed paginated results to be returned * Allowed paginated results to be returned. Returning results more than 1000 is now possible. * Modified ChangeLog.md
1 parent e6fd414 commit dafc0d9

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+
* Added support for returning paginated results for Get-AzPolicyState
2122

2223
## Version 1.3.1
2324
* Corrected example 3 for `Start-AzPolicyComplianceScan`

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 : null,
163+
Top = MyInvocation.BoundParameters.ContainsKey("Top") ? (int?)Top : int.MaxValue,
164164
OrderBy = OrderBy,
165165
Select = Select,
166166
FromProperty = MyInvocation.BoundParameters.ContainsKey("From") ? (DateTime?)From : null,

0 commit comments

Comments
 (0)