diff --git a/src/SDKs/PolicyInsights/Management/Management.PolicyInsights/Microsoft.Azure.Management.PolicyInsights.csproj b/src/SDKs/PolicyInsights/Management/Management.PolicyInsights/Microsoft.Azure.Management.PolicyInsights.csproj
index 000a4b2bf74cd..c20326e42e607 100644
--- a/src/SDKs/PolicyInsights/Management/Management.PolicyInsights/Microsoft.Azure.Management.PolicyInsights.csproj
+++ b/src/SDKs/PolicyInsights/Management/Management.PolicyInsights/Microsoft.Azure.Management.PolicyInsights.csproj
@@ -7,9 +7,9 @@
Microsoft.Azure.Management.PolicyInsights
Provides policy insights operations for Microsoft Azure.
Microsoft.Azure.Management.PolicyInsights
- 2.0.1
+ 2.0.2
Azure;Policy;PolicyInsights;PolicyEvent;PolicyState;Compliance;
- Taking dependency on 10.0.3 version of Newtonsoft nuget package.
+ Added support for querying policy evaluation details.
$(SdkTargetFx)
diff --git a/src/SDKs/PolicyInsights/Management/Management.PolicyInsights/Properties/AssemblyInfo.cs b/src/SDKs/PolicyInsights/Management/Management.PolicyInsights/Properties/AssemblyInfo.cs
index 43906fe19a9b9..a729e99e91f77 100644
--- a/src/SDKs/PolicyInsights/Management/Management.PolicyInsights/Properties/AssemblyInfo.cs
+++ b/src/SDKs/PolicyInsights/Management/Management.PolicyInsights/Properties/AssemblyInfo.cs
@@ -9,7 +9,7 @@
[assembly: AssemblyDescription("Provides Microsoft Azure policy insights operations.")]
[assembly: AssemblyVersion("2.0.0.0")]
-[assembly: AssemblyFileVersion("2.0.1.0")]
+[assembly: AssemblyFileVersion("2.0.2.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/PolicyInsightsTests.cs b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/PolicyInsightsTests.cs
index 13f7ea14859fa..e61795dc5a20f 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/PolicyInsightsTests.cs
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/PolicyInsightsTests.cs
@@ -77,7 +77,7 @@ private void ValidatePolicyEventsQueryResults(PolicyEventsQueryResults queryResu
}
}
- private void ValidatePolicyStatesQueryResults(PolicyStatesQueryResults queryResults)
+ private void ValidatePolicyStatesQueryResults(PolicyStatesQueryResults queryResults, bool expandPolicyEvaluationDetails = false)
{
Assert.NotNull(queryResults);
@@ -102,6 +102,15 @@ private void ValidatePolicyStatesQueryResults(PolicyStatesQueryResults queryResu
Assert.False(string.IsNullOrEmpty(policyState.SubscriptionId));
Assert.False(string.IsNullOrEmpty(policyState.PolicyDefinitionAction));
+ if (expandPolicyEvaluationDetails && string.Equals(policyState.ComplianceState, "NonCompliant", StringComparison.OrdinalIgnoreCase))
+ {
+ Assert.NotNull(policyState.PolicyEvaluationDetails);
+ }
+ else
+ {
+ Assert.Null(policyState.PolicyEvaluationDetails);
+ }
+
Assert.NotNull(policyState.AdditionalProperties);
}
}
@@ -305,6 +314,17 @@ public void PolicyStates_LatestResourceScope()
}
}
+ [Fact]
+ public void PolicyStates_LatestResourceScopeExpandPolicyEvaluationDetails()
+ {
+ using (var context = MockContext.Start(this.GetType().FullName))
+ {
+ var policyInsightsClient = GetPolicyInsightsClient(context);
+ var queryResults = policyInsightsClient.PolicyStates.ListQueryResultsForResource(PolicyStatesResource.Latest, ResourceId, new QueryOptions { Top = 10, Expand = "PolicyEvaluationDetails" });
+ ValidatePolicyStatesQueryResults(queryResults: queryResults, expandPolicyEvaluationDetails: true);
+ }
+ }
+
[Fact]
public void PolicyStates_LatestPolicySetDefinitionScope()
{
@@ -397,6 +417,17 @@ public void PolicyStates_DefaultResourceScope()
}
}
+ [Fact]
+ public void PolicyStates_DefaultResourceScopeExpandPolicyEvaluationDetails()
+ {
+ using (var context = MockContext.Start(this.GetType().FullName))
+ {
+ var policyInsightsClient = GetPolicyInsightsClient(context);
+ var queryResults = policyInsightsClient.PolicyStates.ListQueryResultsForResource(PolicyStatesResource.Default, ResourceId, new QueryOptions { Top = 10, Expand = "PolicyEvaluationDetails" });
+ ValidatePolicyStatesQueryResults(queryResults: queryResults, expandPolicyEvaluationDetails: true);
+ }
+ }
+
[Fact]
public void PolicyStates_DefaultPolicySetDefinitionScope()
{
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultManagementGroupScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultManagementGroupScope.json
index e4424209a8f24..2d4fe99bb1fcf 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultManagementGroupScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultManagementGroupScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2F6Z292dGVzdDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvZGVmYXVsdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2F6Z292dGVzdDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvZGVmYXVsdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultPolicyDefinitionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultPolicyDefinitionScope.json
index 320d84e7f655c..045f3ed4d5cec 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultPolicyDefinitionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultPolicyDefinitionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lEZWZpbml0aW9ucy9kN2IxM2MzMC1lNmFhLTQ3ZTEtYjUwYS04ZTMzZjE1MmQwODYvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvZGVmYXVsdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lEZWZpbml0aW9ucy9kN2IxM2MzMC1lNmFhLTQ3ZTEtYjUwYS04ZTMzZjE1MmQwODYvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvZGVmYXVsdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultPolicySetDefinitionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultPolicySetDefinitionScope.json
index 73e7c5a82ab59..1e0d5f3ea7304 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultPolicySetDefinitionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultPolicySetDefinitionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lTZXREZWZpbml0aW9ucy9kYjZjNTA3NC1hNTI5LTRjYzgtODg4Mi00M2YxMGVmNDIwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvZGVmYXVsdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lTZXREZWZpbml0aW9ucy9kYjZjNTA3NC1hNTI5LTRjYzgtODg4Mi00M2YxMGVmNDIwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvZGVmYXVsdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceGroupLevelPolicyAssignmentScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceGroupLevelPolicyAssignmentScope.json
index 60c7a06ce5283..7fa591d5d53fe 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceGroupLevelPolicyAssignmentScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceGroupLevelPolicyAssignmentScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlZ3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5QXNzaWdubWVudHMvNDVhYjJhYjc4OThkNDVlYmIzMDg3NTczL3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2RlZmF1bHQvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDQmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlZ3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5QXNzaWdubWVudHMvNDVhYjJhYjc4OThkNDVlYmIzMDg3NTczL3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2RlZmF1bHQvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDctMDEtcHJldmlldyYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceGroupScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceGroupScope.json
index 1fc03fbe3a21a..a02ae6017f33c 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceGroupScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceGroupScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlR3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9kZWZhdWx0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlR3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9kZWZhdWx0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceScope.json
index 625d71de6921d..16bda368c1bcb 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "//subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2QwNjEwYjI3LTk2NjMtNGMwNS04OWY4LTViNGJlMDFlODZhNS9yZXNvdXJjZWdyb3Vwcy9nb3ZpbnRwb2xpY3lycC9wcm92aWRlcnMvbWljcm9zb2Z0Lm5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9nb3YtaW50LXBvbGljeS1ycC9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9kZWZhdWx0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "//subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2QwNjEwYjI3LTk2NjMtNGMwNS04OWY4LTViNGJlMDFlODZhNS9yZXNvdXJjZWdyb3Vwcy9nb3ZpbnRwb2xpY3lycC9wcm92aWRlcnMvbWljcm9zb2Z0Lm5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9nb3YtaW50LXBvbGljeS1ycC9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9kZWZhdWx0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceScopeExpandPolicyEvaluationDetails.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceScopeExpandPolicyEvaluationDetails.json
new file mode 100644
index 0000000000000..feb7f490d799a
--- /dev/null
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultResourceScopeExpandPolicyEvaluationDetails.json
@@ -0,0 +1,74 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "//subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$expand=PolicyEvaluationDetails",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2QwNjEwYjI3LTk2NjMtNGMwNS04OWY4LTViNGJlMDFlODZhNS9yZXNvdXJjZWdyb3Vwcy9nb3ZpbnRwb2xpY3lycC9wcm92aWRlcnMvbWljcm9zb2Z0Lm5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9nb3YtaW50LXBvbGljeS1ycC9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9kZWZhdWx0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZXhwYW5kPVBvbGljeUV2YWx1YXRpb25EZXRhaWxz",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3bd9d6dd-2936-4603-a097-9fab453fbe4e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17763.",
+ "Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/2.0.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 12 Mar 2019 17:50:40 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-subscription-policy-insights-requests": [
+ "598"
+ ],
+ "x-ms-request-id": [
+ ":eec00d41-c081-4a38-a87e-04e22ba4c017"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11991"
+ ],
+ "x-ms-correlation-request-id": [
+ "6fc6c808-20b9-43b2-9066-3b6b51a1d9b6"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20190312T175040Z:6fc6c808-20b9-43b2-9066-3b6b51a1d9b6"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "12719"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#default\",\r\n \"@odata.count\": 7,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3380116Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/88deedb1a79843fa9b3cd693\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/7f89b1eb-583c-429a-8828-af049802c1d9\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": false,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"88deedb1a79843fa9b3cd693\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"7f89b1eb-583c-429a-8828-af049802c1d9\",\r\n \"policyDefinitionAction\": \"auditifnotexists\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionName\": \"89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"auditdiagnosticsetting\",\r\n \"complianceState\": \"NonCompliant\",\r\n \"policyEvaluationDetails\": {\r\n \"ifNotExistsDetails\": {\r\n \"totalResources\": 0\r\n }\r\n }\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379871Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/securitycenterbuiltin\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/1d84d5fb-01f6-4d12-ba4f-4a26081d403d\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"SecurityCenterBuiltIn\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"1d84d5fb-01f6-4d12-ba4f-4a26081d403d\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8\",\r\n \"policySetDefinitionName\": \"1f3afdf9-d0c9-4c3d-847f-89da613e70a8\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"classiccomputevmsmonitoring\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379759Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/securitycenterbuiltin\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/37e0d2fe-28a5-43d6-a273-67d37d1f5606\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"SecurityCenterBuiltIn\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"37e0d2fe-28a5-43d6-a273-67d37d1f5606\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8\",\r\n \"policySetDefinitionName\": \"1f3afdf9-d0c9-4c3d-847f-89da613e70a8\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"classicstorageaccountsmonitoring\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379633Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ced209fa90cd4809bc2498a4\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/8dc89b7c-4ffa-4051-b93e-4e8f1bd5631a\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"ced209fa90cd4809bc2498a4\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"8dc89b7c-4ffa-4051-b93e-4e8f1bd5631a\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"\",\r\n \"policySetDefinitionName\": \"\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379499Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/88deedb1a79843fa9b3cd693\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/1d84d5fb-01f6-4d12-ba4f-4a26081d403d\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"88deedb1a79843fa9b3cd693\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"1d84d5fb-01f6-4d12-ba4f-4a26081d403d\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionName\": \"89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"audituseofclassicvirtualmachines\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379381Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/88deedb1a79843fa9b3cd693\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/37e0d2fe-28a5-43d6-a273-67d37d1f5606\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"88deedb1a79843fa9b3cd693\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"37e0d2fe-28a5-43d6-a273-67d37d1f5606\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionName\": \"89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"audituseofclassicstorageaccounts\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#default/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.337922Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c3059c96b0940f0995f9464\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/0a914e76-4921-4c19-b460-a2d36003525a\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"3c3059c96b0940f0995f9464\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"0a914e76-4921-4c19-b460-a2d36003525a\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"\",\r\n \"policySetDefinitionName\": \"\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d0610b27-9663-4c05-89f8-5b4be01e86a5"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultSubscriptionLevelPolicyAssignmentScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultSubscriptionLevelPolicyAssignmentScope.json
index b26de8bac2988..1df226d77264b 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultSubscriptionLevelPolicyAssignmentScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultSubscriptionLevelPolicyAssignmentScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lBc3NpZ25tZW50cy80NWFiMmFiNzg5OGQ0NWViYjMwODc1NzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvZGVmYXVsdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lBc3NpZ25tZW50cy80NWFiMmFiNzg5OGQ0NWViYjMwODc1NzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvZGVmYXVsdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultSubscriptionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultSubscriptionScope.json
index 90ba0e5b62783..0df330c27c3f9 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultSubscriptionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_DefaultSubscriptionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2RlZmF1bHQvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDQmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/default/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2RlZmF1bHQvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDctMDEtcHJldmlldyYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestManagementGroupScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestManagementGroupScope.json
index 7aed261154e20..caec752133503 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestManagementGroupScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestManagementGroupScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2F6Z292dGVzdDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2F6Z292dGVzdDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestPolicyDefinitionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestPolicyDefinitionScope.json
index 49e56696f9948..bc4a28c433699 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestPolicyDefinitionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestPolicyDefinitionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lEZWZpbml0aW9ucy9kN2IxM2MzMC1lNmFhLTQ3ZTEtYjUwYS04ZTMzZjE1MmQwODYvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lEZWZpbml0aW9ucy9kN2IxM2MzMC1lNmFhLTQ3ZTEtYjUwYS04ZTMzZjE1MmQwODYvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestPolicySetDefinitionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestPolicySetDefinitionScope.json
index 7c8111dc72b74..6dc6f1be793a7 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestPolicySetDefinitionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestPolicySetDefinitionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lTZXREZWZpbml0aW9ucy9kYjZjNTA3NC1hNTI5LTRjYzgtODg4Mi00M2YxMGVmNDIwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lTZXREZWZpbml0aW9ucy9kYjZjNTA3NC1hNTI5LTRjYzgtODg4Mi00M2YxMGVmNDIwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceGroupLevelPolicyAssignmentScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceGroupLevelPolicyAssignmentScope.json
index e24158f79d218..814baf0b42404 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceGroupLevelPolicyAssignmentScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceGroupLevelPolicyAssignmentScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlZ3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5QXNzaWdubWVudHMvNDVhYjJhYjc4OThkNDVlYmIzMDg3NTczL3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlZ3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5QXNzaWdubWVudHMvNDVhYjJhYjc4OThkNDVlYmIzMDg3NTczL3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceGroupScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceGroupScope.json
index d703715cbeb61..be1009336e4ef 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceGroupScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceGroupScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlR3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3QvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDQmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlR3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3QvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDctMDEtcHJldmlldyYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceScope.json
index ffae5f617ea68..4e9f6f7489f8b 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "//subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2QwNjEwYjI3LTk2NjMtNGMwNS04OWY4LTViNGJlMDFlODZhNS9yZXNvdXJjZWdyb3Vwcy9nb3ZpbnRwb2xpY3lycC9wcm92aWRlcnMvbWljcm9zb2Z0Lm5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9nb3YtaW50LXBvbGljeS1ycC9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3QvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDQmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
+ "RequestUri": "//subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2QwNjEwYjI3LTk2NjMtNGMwNS04OWY4LTViNGJlMDFlODZhNS9yZXNvdXJjZWdyb3Vwcy9nb3ZpbnRwb2xpY3lycC9wcm92aWRlcnMvbWljcm9zb2Z0Lm5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9nb3YtaW50LXBvbGljeS1ycC9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3QvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDctMDEtcHJldmlldyYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceScopeExpandPolicyEvaluationDetails.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceScopeExpandPolicyEvaluationDetails.json
new file mode 100644
index 0000000000000..7d8b788b69af3
--- /dev/null
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestResourceScopeExpandPolicyEvaluationDetails.json
@@ -0,0 +1,74 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "//subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$expand=PolicyEvaluationDetails",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2QwNjEwYjI3LTk2NjMtNGMwNS04OWY4LTViNGJlMDFlODZhNS9yZXNvdXJjZWdyb3Vwcy9nb3ZpbnRwb2xpY3lycC9wcm92aWRlcnMvbWljcm9zb2Z0Lm5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9nb3YtaW50LXBvbGljeS1ycC9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3QvcXVlcnlSZXN1bHRzP2FwaS12ZXJzaW9uPTIwMTgtMDctMDEtcHJldmlldyYkdG9wPTEwJiRleHBhbmQ9UG9saWN5RXZhbHVhdGlvbkRldGFpbHM=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "39705632-1b3b-407b-b44d-87b72fba225c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26614.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.17763.",
+ "Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/2.0.1.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 12 Mar 2019 17:50:38 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-subscription-policy-insights-requests": [
+ "599"
+ ],
+ "x-ms-request-id": [
+ ":4eba3605-483a-4932-9ab2-456ba886c32d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11992"
+ ],
+ "x-ms-correlation-request-id": [
+ "f1c6c5d6-e5c6-438a-9a77-9f2663653e2b"
+ ],
+ "x-ms-routing-request-id": [
+ "WESTUS2:20190312T175038Z:f1c6c5d6-e5c6-438a-9a77-9f2663653e2b"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "12711"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest\",\r\n \"@odata.count\": 7,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3380116Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/88deedb1a79843fa9b3cd693\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/7f89b1eb-583c-429a-8828-af049802c1d9\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": false,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"88deedb1a79843fa9b3cd693\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"7f89b1eb-583c-429a-8828-af049802c1d9\",\r\n \"policyDefinitionAction\": \"auditifnotexists\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionName\": \"89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"auditdiagnosticsetting\",\r\n \"complianceState\": \"NonCompliant\",\r\n \"policyEvaluationDetails\": {\r\n \"ifNotExistsDetails\": {\r\n \"totalResources\": 0\r\n }\r\n }\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379871Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/securitycenterbuiltin\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/1d84d5fb-01f6-4d12-ba4f-4a26081d403d\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"SecurityCenterBuiltIn\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"1d84d5fb-01f6-4d12-ba4f-4a26081d403d\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8\",\r\n \"policySetDefinitionName\": \"1f3afdf9-d0c9-4c3d-847f-89da613e70a8\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"classiccomputevmsmonitoring\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379759Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/securitycenterbuiltin\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/37e0d2fe-28a5-43d6-a273-67d37d1f5606\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"SecurityCenterBuiltIn\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"37e0d2fe-28a5-43d6-a273-67d37d1f5606\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8\",\r\n \"policySetDefinitionName\": \"1f3afdf9-d0c9-4c3d-847f-89da613e70a8\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"classicstorageaccountsmonitoring\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379633Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ced209fa90cd4809bc2498a4\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/8dc89b7c-4ffa-4051-b93e-4e8f1bd5631a\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"ced209fa90cd4809bc2498a4\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"8dc89b7c-4ffa-4051-b93e-4e8f1bd5631a\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"\",\r\n \"policySetDefinitionName\": \"\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379499Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/88deedb1a79843fa9b3cd693\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/1d84d5fb-01f6-4d12-ba4f-4a26081d403d\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"88deedb1a79843fa9b3cd693\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"1d84d5fb-01f6-4d12-ba4f-4a26081d403d\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionName\": \"89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"audituseofclassicvirtualmachines\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.3379381Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/88deedb1a79843fa9b3cd693\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/37e0d2fe-28a5-43d6-a273-67d37d1f5606\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"88deedb1a79843fa9b3cd693\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"37e0d2fe-28a5-43d6-a273-67d37d1f5606\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"/providers/Microsoft.Authorization/policySetDefinitions/89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionName\": \"89c6cddc-1c73-4ac1-b19c-54d1a15a42f2\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"audituseofclassicstorageaccounts\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n },\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#latest/$entity\",\r\n \"timestamp\": \"2019-03-11T20:03:54.337922Z\",\r\n \"resourceId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp\",\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c3059c96b0940f0995f9464\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/0a914e76-4921-4c19-b460-a2d36003525a\",\r\n \"effectiveParameters\": \"\",\r\n \"isCompliant\": true,\r\n \"subscriptionId\": \"d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"resourceType\": \"/Microsoft.Network/trafficManagerProfiles\",\r\n \"resourceLocation\": \"global\",\r\n \"resourceGroup\": \"govintpolicyrp\",\r\n \"resourceTags\": \"tbd\",\r\n \"policyAssignmentName\": \"3c3059c96b0940f0995f9464\",\r\n \"policyAssignmentOwner\": \"tbd\",\r\n \"policyAssignmentParameters\": \"\",\r\n \"policyAssignmentScope\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5\",\r\n \"policyDefinitionName\": \"0a914e76-4921-4c19-b460-a2d36003525a\",\r\n \"policyDefinitionAction\": \"audit\",\r\n \"policyDefinitionCategory\": \"tbd\",\r\n \"policySetDefinitionId\": \"\",\r\n \"policySetDefinitionName\": \"\",\r\n \"policySetDefinitionOwner\": \"\",\r\n \"policySetDefinitionCategory\": \"\",\r\n \"policySetDefinitionParameters\": \"\",\r\n \"managementGroupIds\": \"ArtTest2,ArtTest1,72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"complianceState\": \"Compliant\",\r\n \"policyEvaluationDetails\": null\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d0610b27-9663-4c05-89f8-5b4be01e86a5"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestSubscriptionLevelPolicyAssignmentScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestSubscriptionLevelPolicyAssignmentScope.json
index 463df0587b86c..98c3eee5feeb1 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestSubscriptionLevelPolicyAssignmentScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestSubscriptionLevelPolicyAssignmentScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lBc3NpZ25tZW50cy80NWFiMmFiNzg5OGQ0NWViYjMwODc1NzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lBc3NpZ25tZW50cy80NWFiMmFiNzg5OGQ0NWViYjMwODc1NzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3F1ZXJ5UmVzdWx0cz9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestSubscriptionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestSubscriptionScope.json
index bacb1a5d19604..65f445d667cd9 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestSubscriptionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_LatestSubscriptionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeManagementGroupScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeManagementGroupScope.json
index 9220398bd328c..ad0abc71e8c79 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeManagementGroupScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeManagementGroupScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2F6Z292dGVzdDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3N1bW1hcml6ZT9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuTWFuYWdlbWVudC9tYW5hZ2VtZW50R3JvdXBzL2F6Z292dGVzdDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3N1bW1hcml6ZT9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
@@ -17,7 +17,7 @@
"Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 22296,\r\n \"nonCompliantPolicies\": 24\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/22005cc594164636a6444db8\",\r\n \"policySetDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policysetdefinitions/335cefd2-ab16-430f-b364-974a170eb1d5\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/22005cc594164636a6444db8'\",\r\n \"nonCompliantResources\": 22296,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"4337452039094051187\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/22005cc594164636a6444db8' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d' and PolicyDefinitionReferenceId eq '4337452039094051187'\",\r\n \"nonCompliantResources\": 21068\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15521232277412542086\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/22005cc594164636a6444db8' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d' and PolicyDefinitionReferenceId eq '15521232277412542086'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/1ef5d536aec743a0aa801c1a\",\r\n \"policySetDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policysetdefinitions/335cefd2-ab16-430f-b364-974a170eb1d5\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/1ef5d536aec743a0aa801c1a'\",\r\n \"nonCompliantResources\": 22296,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"4337452039094051187\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/1ef5d536aec743a0aa801c1a' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d' and PolicyDefinitionReferenceId eq '4337452039094051187'\",\r\n \"nonCompliantResources\": 21068\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15521232277412542086\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/1ef5d536aec743a0aa801c1a' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d' and PolicyDefinitionReferenceId eq '15521232277412542086'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/186044306c044a1d8c0ff76c\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/186044306c044a1d8c0ff76c'\",\r\n \"nonCompliantResources\": 21408,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/186044306c044a1d8c0ff76c' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d'\",\r\n \"nonCompliantResources\": 21408\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/222c93eb78ad47a5830b5e83\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/222c93eb78ad47a5830b5e83'\",\r\n \"nonCompliantResources\": 17102,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/222c93eb78ad47a5830b5e83' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/95816fce53454b15a7ed803d\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/95816fce53454b15a7ed803d'\",\r\n \"nonCompliantResources\": 17102,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/a2c0414b-82e4-459d-97d5-94c79a89232c\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/95816fce53454b15a7ed803d' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/a2c0414b-82e4-459d-97d5-94c79a89232c'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest2/providers/microsoft.authorization/policyassignments/e9ad4ab40dfb4549a998cfcc\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest2/providers/microsoft.authorization/policyassignments/e9ad4ab40dfb4549a998cfcc'\",\r\n \"nonCompliantResources\": 17102,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest2/providers/microsoft.authorization/policyassignments/e9ad4ab40dfb4549a998cfcc' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/7389ad5076444420a458277f\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/7389ad5076444420a458277f'\",\r\n \"nonCompliantResources\": 17102,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/7389ad5076444420a458277f' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policyassignments/ae88db4883114ef18376d84f\",\r\n \"policySetDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policysetdefinitions/ced9d1e5-109c-4e0b-a447-afbf649db22e\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policyassignments/ae88db4883114ef18376d84f'\",\r\n \"nonCompliantResources\": 265,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"9519314569619848781\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policydefinitions/ced9d1e5-109c-4e0b-a447-afbf649db203\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policyassignments/ae88db4883114ef18376d84f' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policydefinitions/ced9d1e5-109c-4e0b-a447-afbf649db203' and PolicyDefinitionReferenceId eq '9519314569619848781'\",\r\n \"nonCompliantResources\": 204\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"1755013020441245429\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policydefinitions/ced9d1e5-109c-4e0b-a447-afbf649db22a\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policyassignments/ae88db4883114ef18376d84f' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policydefinitions/ced9d1e5-109c-4e0b-a447-afbf649db22a' and PolicyDefinitionReferenceId eq '1755013020441245429'\",\r\n \"nonCompliantResources\": 61\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policyassignments/denyifnonsgpolicy\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policyassignments/denyifnonsgpolicy'\",\r\n \"nonCompliantResources\": 66,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policydefinitions/denynetworkinterfaceifnonsg\",\r\n \"effect\": \"deny\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policyassignments/denyifnonsgpolicy' and PolicyDefinitionId eq '/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policydefinitions/denynetworkinterfaceifnonsg'\",\r\n \"nonCompliantResources\": 66\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/gokmenhpolicyassignment\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/gokmenhpolicyassignment'\",\r\n \"nonCompliantResources\": 55,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/06a78e20-9358-41c9-923c-fb736d382a4d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/gokmenhpolicyassignment' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/06a78e20-9358-41c9-923c-fb736d382a4d'\",\r\n \"nonCompliantResources\": 55\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 22296,\r\n \"nonCompliantPolicies\": 24\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/22005cc594164636a6444db8\",\r\n \"policySetDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policysetdefinitions/335cefd2-ab16-430f-b364-974a170eb1d5\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/22005cc594164636a6444db8'\",\r\n \"nonCompliantResources\": 22296,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"4337452039094051187\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/22005cc594164636a6444db8' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d' and PolicyDefinitionReferenceId eq '4337452039094051187'\",\r\n \"nonCompliantResources\": 21068\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15521232277412542086\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/22005cc594164636a6444db8' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d' and PolicyDefinitionReferenceId eq '15521232277412542086'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/1ef5d536aec743a0aa801c1a\",\r\n \"policySetDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policysetdefinitions/335cefd2-ab16-430f-b364-974a170eb1d5\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/1ef5d536aec743a0aa801c1a'\",\r\n \"nonCompliantResources\": 22296,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"4337452039094051187\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/1ef5d536aec743a0aa801c1a' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d' and PolicyDefinitionReferenceId eq '4337452039094051187'\",\r\n \"nonCompliantResources\": 21068\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15521232277412542086\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/1ef5d536aec743a0aa801c1a' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d' and PolicyDefinitionReferenceId eq '15521232277412542086'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/186044306c044a1d8c0ff76c\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/186044306c044a1d8c0ff76c'\",\r\n \"nonCompliantResources\": 21408,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/186044306c044a1d8c0ff76c' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d'\",\r\n \"nonCompliantResources\": 21408\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/222c93eb78ad47a5830b5e83\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/222c93eb78ad47a5830b5e83'\",\r\n \"nonCompliantResources\": 17102,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/222c93eb78ad47a5830b5e83' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/95816fce53454b15a7ed803d\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/95816fce53454b15a7ed803d'\",\r\n \"nonCompliantResources\": 17102,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/a2c0414b-82e4-459d-97d5-94c79a89232c\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/95816fce53454b15a7ed803d' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/a2c0414b-82e4-459d-97d5-94c79a89232c'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest2/providers/microsoft.authorization/policyassignments/e9ad4ab40dfb4549a998cfcc\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest2/providers/microsoft.authorization/policyassignments/e9ad4ab40dfb4549a998cfcc'\",\r\n \"nonCompliantResources\": 17102,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest2/providers/microsoft.authorization/policyassignments/e9ad4ab40dfb4549a998cfcc' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/7389ad5076444420a458277f\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/7389ad5076444420a458277f'\",\r\n \"nonCompliantResources\": 17102,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/7389ad5076444420a458277f' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policydefinitions/022d9357-5a90-46f7-9554-21d30ce4c32d'\",\r\n \"nonCompliantResources\": 17102\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policyassignments/ae88db4883114ef18376d84f\",\r\n \"policySetDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policysetdefinitions/ced9d1e5-109c-4e0b-a447-afbf649db22e\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policyassignments/ae88db4883114ef18376d84f'\",\r\n \"nonCompliantResources\": 265,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"9519314569619848781\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policydefinitions/ced9d1e5-109c-4e0b-a447-afbf649db203\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policyassignments/ae88db4883114ef18376d84f' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policydefinitions/ced9d1e5-109c-4e0b-a447-afbf649db203' and PolicyDefinitionReferenceId eq '9519314569619848781'\",\r\n \"nonCompliantResources\": 204\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"1755013020441245429\",\r\n \"policyDefinitionId\": \"/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policydefinitions/ced9d1e5-109c-4e0b-a447-afbf649db22a\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policyassignments/ae88db4883114ef18376d84f' and PolicyDefinitionId eq '/providers/microsoft.management/managementgroups/azgovtest3/providers/microsoft.authorization/policydefinitions/ced9d1e5-109c-4e0b-a447-afbf649db22a' and PolicyDefinitionReferenceId eq '1755013020441245429'\",\r\n \"nonCompliantResources\": 61\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policyassignments/denyifnonsgpolicy\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policyassignments/denyifnonsgpolicy'\",\r\n \"nonCompliantResources\": 66,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policydefinitions/denynetworkinterfaceifnonsg\",\r\n \"effect\": \"deny\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policyassignments/denyifnonsgpolicy' and PolicyDefinitionId eq '/subscriptions/0b88dfdb-55b3-4fb0-b474-5b6dcbe6b2ef/providers/microsoft.authorization/policydefinitions/denynetworkinterfaceifnonsg'\",\r\n \"nonCompliantResources\": 66\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/gokmenhpolicyassignment\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/gokmenhpolicyassignment'\",\r\n \"nonCompliantResources\": 55,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/06a78e20-9358-41c9-923c-fb736d382a4d\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/providers/Microsoft.Management/managementGroups/azgovtest4/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:28Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/providers/microsoft.management/managementgroups/azgovtest1/providers/microsoft.authorization/policyassignments/gokmenhpolicyassignment' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/06a78e20-9358-41c9-923c-fb736d382a4d'\",\r\n \"nonCompliantResources\": 55\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizePolicyDefinitionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizePolicyDefinitionScope.json
index e05d7233e9ada..65d8da6f0a94b 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizePolicyDefinitionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizePolicyDefinitionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lEZWZpbml0aW9ucy9kN2IxM2MzMC1lNmFhLTQ3ZTEtYjUwYS04ZTMzZjE1MmQwODYvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3N1bW1hcml6ZT9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lEZWZpbml0aW9ucy9kN2IxM2MzMC1lNmFhLTQ3ZTEtYjUwYS04ZTMzZjE1MmQwODYvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3N1bW1hcml6ZT9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
@@ -17,7 +17,7 @@
"Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:16Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/8a59c069ec044343a2319ed9\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/20c4afd0-8a77-4433-b8b0-4ad06e4c7115\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:16Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/8a59c069ec044343a2319ed9'\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"797444469315623872\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086\",\r\n \"effect\": \"deployifnotexists\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:16Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/8a59c069ec044343a2319ed9' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086' and PolicyDefinitionReferenceId eq '797444469315623872'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:16Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/8a59c069ec044343a2319ed9\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/20c4afd0-8a77-4433-b8b0-4ad06e4c7115\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:16Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/8a59c069ec044343a2319ed9'\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"797444469315623872\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086\",\r\n \"effect\": \"deployifnotexists\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyDefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:16Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/8a59c069ec044343a2319ed9' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/d7b13c30-e6aa-47e1-b50a-8e33f152d086' and PolicyDefinitionReferenceId eq '797444469315623872'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizePolicySetDefinitionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizePolicySetDefinitionScope.json
index 18da939661f3c..abd832646361b 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizePolicySetDefinitionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizePolicySetDefinitionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lTZXREZWZpbml0aW9ucy9kYjZjNTA3NC1hNTI5LTRjYzgtODg4Mi00M2YxMGVmNDIwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3N1bW1hcml6ZT9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lTZXREZWZpbml0aW9ucy9kYjZjNTA3NC1hNTI5LTRjYzgtODg4Mi00M2YxMGVmNDIwMDIvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3N1bW1hcml6ZT9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
@@ -17,7 +17,7 @@
"Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/1de07ba279ea4eb89c6b5395\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/db6c5074-a529-4cc8-8882-43f10ef42002\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/1de07ba279ea4eb89c6b5395'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/1de07ba279ea4eb89c6b5395' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/2a2cff38b0b74069928fba43\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/db6c5074-a529-4cc8-8882-43f10ef42002\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/2a2cff38b0b74069928fba43'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/2a2cff38b0b74069928fba43' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/1de07ba279ea4eb89c6b5395\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/db6c5074-a529-4cc8-8882-43f10ef42002\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/1de07ba279ea4eb89c6b5395'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/1de07ba279ea4eb89c6b5395' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/2a2cff38b0b74069928fba43\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/db6c5074-a529-4cc8-8882-43f10ef42002\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/2a2cff38b0b74069928fba43'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policySetDefinitions/db6c5074-a529-4cc8-8882-43f10ef42002/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:15Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/2a2cff38b0b74069928fba43' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceGroupLevelPolicyAssignmentScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceGroupLevelPolicyAssignmentScope.json
index cdabcd8e2b9d4..bd378bc3eff98 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceGroupLevelPolicyAssignmentScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceGroupLevelPolicyAssignmentScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlZ3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5QXNzaWdubWVudHMvNDVhYjJhYjc4OThkNDVlYmIzMDg3NTczL3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9zdW1tYXJpemU/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlZ3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dGhvcml6YXRpb24vcG9saWN5QXNzaWdubWVudHMvNDVhYjJhYjc4OThkNDVlYmIzMDg3NTczL3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9zdW1tYXJpemU/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
@@ -17,7 +17,7 @@
"Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:09Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 0,\r\n \"nonCompliantPolicies\": 0\r\n },\r\n \"policyAssignments\": []\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:09Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 0,\r\n \"nonCompliantPolicies\": 0\r\n },\r\n \"policyAssignments\": []\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceGroupScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceGroupScope.json
index 8231ce4ade4d6..d9ba99e06a73b 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceGroupScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceGroupScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlR3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3Qvc3VtbWFyaXplP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDQmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Jlc291cmNlR3JvdXBzL2J1bGVudHRlc3RyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3Qvc3VtbWFyaXplP2FwaS12ZXJzaW9uPTIwMTgtMDctMDEtcHJldmlldyYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
@@ -17,7 +17,7 @@
"Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 13\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 5\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"14799174781370023846\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1' and PolicyDefinitionReferenceId eq '14799174781370023846'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"17446851636164155301\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '17446851636164155301'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"2124621540977569058\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '2124621540977569058'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"18108209265335873469\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682' and PolicyDefinitionReferenceId eq '18108209265335873469'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15798722305728538898\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition' and PolicyDefinitionReferenceId eq '15798722305728538898'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/a03db67e-a286-43c3-9098-b2da83d361ad\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"4047897157028507992\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4047897157028507992'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"4859121137597195236\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4859121137597195236'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/5c7950f6-99c0-4ead-a646-b0b9b7832559\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"2856226587268151587\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3' and PolicyDefinitionReferenceId eq '2856226587268151587'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"1748719353954991994\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue' and PolicyDefinitionReferenceId eq '1748719353954991994'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test'\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite'\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/e4a08f18-4e3e-47af-a2eb-cc96d8c9a01f\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030'\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 2\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f4d1645d-9180-4968-99df-17234d0f7019\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/3e275e2e-a157-4ade-8f91-43b3ea37000c\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f4d1645d-9180-4968-99df-17234d0f7019'\",\r\n \"nonCompliantResources\": 2,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498\",\r\n \"effect\": \"append\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f4d1645d-9180-4968-99df-17234d0f7019' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498'\",\r\n \"nonCompliantResources\": 2\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e275e2e-a157-4ade-8f91-43b3ea370007\",\r\n \"effect\": \"deny\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f4d1645d-9180-4968-99df-17234d0f7019' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e275e2e-a157-4ade-8f91-43b3ea370007'\",\r\n \"nonCompliantResources\": 2\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f25fa560-4c90-4cf2-8411-49a55b2ff013\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/3e275e2e-a157-4ade-8f91-43b3ea37000c\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f25fa560-4c90-4cf2-8411-49a55b2ff013'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498\",\r\n \"effect\": \"append\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f25fa560-4c90-4cf2-8411-49a55b2ff013' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e275e2e-a157-4ade-8f91-43b3ea370007\",\r\n \"effect\": \"deny\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f25fa560-4c90-4cf2-8411-49a55b2ff013' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e275e2e-a157-4ade-8f91-43b3ea370007'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 13\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 5\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"14799174781370023846\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1' and PolicyDefinitionReferenceId eq '14799174781370023846'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"17446851636164155301\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '17446851636164155301'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"2124621540977569058\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '2124621540977569058'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"18108209265335873469\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682' and PolicyDefinitionReferenceId eq '18108209265335873469'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15798722305728538898\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition' and PolicyDefinitionReferenceId eq '15798722305728538898'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/a03db67e-a286-43c3-9098-b2da83d361ad\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"4047897157028507992\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4047897157028507992'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"4859121137597195236\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4859121137597195236'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/5c7950f6-99c0-4ead-a646-b0b9b7832559\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"2856226587268151587\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3' and PolicyDefinitionReferenceId eq '2856226587268151587'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"1748719353954991994\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue' and PolicyDefinitionReferenceId eq '1748719353954991994'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced'\",\r\n \"nonCompliantResources\": 7,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 7\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test'\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite'\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/e4a08f18-4e3e-47af-a2eb-cc96d8c9a01f\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030'\",\r\n \"nonCompliantResources\": 3,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value'\",\r\n \"nonCompliantResources\": 3\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 2\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f4d1645d-9180-4968-99df-17234d0f7019\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/3e275e2e-a157-4ade-8f91-43b3ea37000c\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f4d1645d-9180-4968-99df-17234d0f7019'\",\r\n \"nonCompliantResources\": 2,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498\",\r\n \"effect\": \"append\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f4d1645d-9180-4968-99df-17234d0f7019' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498'\",\r\n \"nonCompliantResources\": 2\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e275e2e-a157-4ade-8f91-43b3ea370007\",\r\n \"effect\": \"deny\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f4d1645d-9180-4968-99df-17234d0f7019' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e275e2e-a157-4ade-8f91-43b3ea370007'\",\r\n \"nonCompliantResources\": 2\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f25fa560-4c90-4cf2-8411-49a55b2ff013\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/3e275e2e-a157-4ade-8f91-43b3ea37000c\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f25fa560-4c90-4cf2-8411-49a55b2ff013'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498\",\r\n \"effect\": \"append\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f25fa560-4c90-4cf2-8411-49a55b2ff013' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e275e2e-a157-4ade-8f91-43b3ea370007\",\r\n \"effect\": \"deny\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourceGroups/bulenttestrg/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:54Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/bulenttestrg/providers/microsoft.authorization/policyassignments/f25fa560-4c90-4cf2-8411-49a55b2ff013' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e275e2e-a157-4ade-8f91-43b3ea370007'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceScope.json
index 15d4a324de809..4ee290fd5ed2f 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeResourceScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "//subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2QwNjEwYjI3LTk2NjMtNGMwNS04OWY4LTViNGJlMDFlODZhNS9yZXNvdXJjZWdyb3Vwcy9nb3ZpbnRwb2xpY3lycC9wcm92aWRlcnMvbWljcm9zb2Z0Lm5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9nb3YtaW50LXBvbGljeS1ycC9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3Qvc3VtbWFyaXplP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDQmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
+ "RequestUri": "//subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2QwNjEwYjI3LTk2NjMtNGMwNS04OWY4LTViNGJlMDFlODZhNS9yZXNvdXJjZWdyb3Vwcy9nb3ZpbnRwb2xpY3lycC9wcm92aWRlcnMvbWljcm9zb2Z0Lm5ldHdvcmsvdHJhZmZpY21hbmFnZXJwcm9maWxlcy9nb3YtaW50LXBvbGljeS1ycC9wcm92aWRlcnMvTWljcm9zb2Z0LlBvbGljeUluc2lnaHRzL3BvbGljeVN0YXRlcy9sYXRlc3Qvc3VtbWFyaXplP2FwaS12ZXJzaW9uPTIwMTgtMDctMDEtcHJldmlldyYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
@@ -17,7 +17,7 @@
"Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 9\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/5c7950f6-99c0-4ead-a646-b0b9b7832559\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"2856226587268151587\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3' and PolicyDefinitionReferenceId eq '2856226587268151587'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"1748719353954991994\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue' and PolicyDefinitionReferenceId eq '1748719353954991994'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/22b7db96e2734cf3b0cb0912\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/22b7db96e2734cf3b0cb0912'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/22b7db96e2734cf3b0cb0912' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 4\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"14799174781370023846\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1' and PolicyDefinitionReferenceId eq '14799174781370023846'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"17446851636164155301\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '17446851636164155301'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"2124621540977569058\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '2124621540977569058'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15798722305728538898\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition' and PolicyDefinitionReferenceId eq '15798722305728538898'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/a03db67e-a286-43c3-9098-b2da83d361ad\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 3\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"4047897157028507992\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4047897157028507992'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"4859121137597195236\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4859121137597195236'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"8935913113203900114\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '8935913113203900114'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/e4a08f18-4e3e-47af-a2eb-cc96d8c9a01f\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 9\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/5c7950f6-99c0-4ead-a646-b0b9b7832559\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"2856226587268151587\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3' and PolicyDefinitionReferenceId eq '2856226587268151587'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"1748719353954991994\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue' and PolicyDefinitionReferenceId eq '1748719353954991994'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/22b7db96e2734cf3b0cb0912\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/22b7db96e2734cf3b0cb0912'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/22b7db96e2734cf3b0cb0912' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 4\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"14799174781370023846\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1' and PolicyDefinitionReferenceId eq '14799174781370023846'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"17446851636164155301\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '17446851636164155301'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"2124621540977569058\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '2124621540977569058'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15798722305728538898\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition' and PolicyDefinitionReferenceId eq '15798722305728538898'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/a03db67e-a286-43c3-9098-b2da83d361ad\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 3\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"4047897157028507992\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4047897157028507992'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"4859121137597195236\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4859121137597195236'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"8935913113203900114\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '8935913113203900114'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/e4a08f18-4e3e-47af-a2eb-cc96d8c9a01f\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite'\",\r\n \"nonCompliantResources\": 1,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/resourcegroups/govintpolicyrp/providers/microsoft.network/trafficmanagerprofiles/gov-int-policy-rp/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:37Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeSubscriptionLevelPolicyAssignmentScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeSubscriptionLevelPolicyAssignmentScope.json
index 323a25f15b4d2..487a9ef6026a8 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeSubscriptionLevelPolicyAssignmentScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeSubscriptionLevelPolicyAssignmentScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lBc3NpZ25tZW50cy80NWFiMmFiNzg5OGQ0NWViYjMwODc1NzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3N1bW1hcml6ZT9hcGktdmVyc2lvbj0yMDE4LTA0LTA0JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wb2xpY3lBc3NpZ25tZW50cy80NWFiMmFiNzg5OGQ0NWViYjMwODc1NzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Qb2xpY3lJbnNpZ2h0cy9wb2xpY3lTdGF0ZXMvbGF0ZXN0L3N1bW1hcml6ZT9hcGktdmVyc2lvbj0yMDE4LTA3LTAxLXByZXZpZXcmJHRvcD0xMCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
@@ -17,7 +17,7 @@
"Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:01Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 112,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:01Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573'\",\r\n \"nonCompliantResources\": 112,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c7b9982d-2f50-4730-935f-5c241982a441\",\r\n \"effect\": \"auditifnotexists\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:01Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c7b9982d-2f50-4730-935f-5c241982a441'\",\r\n \"nonCompliantResources\": 112\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:01Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 112,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:01Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573'\",\r\n \"nonCompliantResources\": 112,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c7b9982d-2f50-4730-935f-5c241982a441\",\r\n \"effect\": \"auditifnotexists\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.Authorization/policyAssignments/45ab2ab7898d45ebb3087573/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:57:01Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c7b9982d-2f50-4730-935f-5c241982a441'\",\r\n \"nonCompliantResources\": 112\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeSubscriptionScope.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeSubscriptionScope.json
index 26d6844bca083..31a3edb5cf2fc 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeSubscriptionScope.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/PolicyStates_SummarizeSubscriptionScope.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-04-04&$top=10&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9zdW1tYXJpemU/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEwJiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/summarize?api-version=2018-07-01-preview&$top=10&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9zdW1tYXJpemU/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTAmJGZyb209MjAxOC0wNC0wNFQwMCUzQTAwJTNBMDBa",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
@@ -17,7 +17,7 @@
"Microsoft.Azure.Management.PolicyInsights.PolicyInsightsClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 4856,\r\n \"nonCompliantPolicies\": 31\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/5c7950f6-99c0-4ead-a646-b0b9b7832559\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5'\",\r\n \"nonCompliantResources\": 4812,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"1748719353954991994\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue' and PolicyDefinitionReferenceId eq '1748719353954991994'\",\r\n \"nonCompliantResources\": 4812\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"2856226587268151587\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3' and PolicyDefinitionReferenceId eq '2856226587268151587'\",\r\n \"nonCompliantResources\": 1084\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1'\",\r\n \"nonCompliantResources\": 4459,\r\n \"nonCompliantPolicies\": 5\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"14799174781370023846\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1' and PolicyDefinitionReferenceId eq '14799174781370023846'\",\r\n \"nonCompliantResources\": 4459\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"2124621540977569058\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '2124621540977569058'\",\r\n \"nonCompliantResources\": 4152\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"17446851636164155301\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '17446851636164155301'\",\r\n \"nonCompliantResources\": 1499\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15798722305728538898\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition' and PolicyDefinitionReferenceId eq '15798722305728538898'\",\r\n \"nonCompliantResources\": 480\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"18108209265335873469\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682' and PolicyDefinitionReferenceId eq '18108209265335873469'\",\r\n \"nonCompliantResources\": 98\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/a03db67e-a286-43c3-9098-b2da83d361ad\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01'\",\r\n \"nonCompliantResources\": 4459,\r\n \"nonCompliantPolicies\": 3\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"8935913113203900114\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '8935913113203900114'\",\r\n \"nonCompliantResources\": 4441\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"4859121137597195236\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4859121137597195236'\",\r\n \"nonCompliantResources\": 4152\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"4047897157028507992\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4047897157028507992'\",\r\n \"nonCompliantResources\": 1499\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50'\",\r\n \"nonCompliantResources\": 1499,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 1499\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced'\",\r\n \"nonCompliantResources\": 1499,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 1499\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test'\",\r\n \"nonCompliantResources\": 480,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 480\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/e4a08f18-4e3e-47af-a2eb-cc96d8c9a01f\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030'\",\r\n \"nonCompliantResources\": 480,\r\n \"nonCompliantPolicies\": 3\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value'\",\r\n \"nonCompliantResources\": 480\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 478\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite'\",\r\n \"nonCompliantResources\": 480,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition'\",\r\n \"nonCompliantResources\": 480\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/cf6bec2814bb49b9b423045b\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/cf6bec2814bb49b9b423045b'\",\r\n \"nonCompliantResources\": 113,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/1f20036f-28c3-48f3-9266-05d50fe391f4\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/cf6bec2814bb49b9b423045b' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/1f20036f-28c3-48f3-9266-05d50fe391f4'\",\r\n \"nonCompliantResources\": 113\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573'\",\r\n \"nonCompliantResources\": 112,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c7b9982d-2f50-4730-935f-5c241982a441\",\r\n \"effect\": \"auditifnotexists\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c7b9982d-2f50-4730-935f-5c241982a441'\",\r\n \"nonCompliantResources\": 112\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary\",\r\n \"@odata.count\": 1,\r\n \"value\": [\r\n {\r\n \"@odata.id\": null,\r\n \"@odata.context\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/$metadata#summary/$entity\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false\",\r\n \"nonCompliantResources\": 4856,\r\n \"nonCompliantPolicies\": 31\r\n },\r\n \"policyAssignments\": [\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/5c7950f6-99c0-4ead-a646-b0b9b7832559\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5'\",\r\n \"nonCompliantResources\": 4812,\r\n \"nonCompliantPolicies\": 2\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"1748719353954991994\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/textboxdefaultvalue' and PolicyDefinitionReferenceId eq '1748719353954991994'\",\r\n \"nonCompliantResources\": 4812\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"2856226587268151587\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/3c53617ee139444db82514a5' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/590e752b-d90a-46ec-8fd5-68e16fb7a3e3' and PolicyDefinitionReferenceId eq '2856226587268151587'\",\r\n \"nonCompliantResources\": 1084\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/12b58873-e0f8-4b95-936c-86cbe7c9d697\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1'\",\r\n \"nonCompliantResources\": 4459,\r\n \"nonCompliantPolicies\": 5\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"14799174781370023846\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/24813039-7534-408a-9842-eb99f45721b1' and PolicyDefinitionReferenceId eq '14799174781370023846'\",\r\n \"nonCompliantResources\": 4459\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"2124621540977569058\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '2124621540977569058'\",\r\n \"nonCompliantResources\": 4152\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"17446851636164155301\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '17446851636164155301'\",\r\n \"nonCompliantResources\": 1499\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"15798722305728538898\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition' and PolicyDefinitionReferenceId eq '15798722305728538898'\",\r\n \"nonCompliantResources\": 480\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"18108209265335873469\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/ddd8ef92e3714a5ea3d208c1' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/3e3807c1-65c9-49e0-a406-82d8ae3e3682' and PolicyDefinitionReferenceId eq '18108209265335873469'\",\r\n \"nonCompliantResources\": 98\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/a03db67e-a286-43c3-9098-b2da83d361ad\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01'\",\r\n \"nonCompliantResources\": 4459,\r\n \"nonCompliantPolicies\": 3\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"8935913113203900114\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '8935913113203900114'\",\r\n \"nonCompliantResources\": 4441\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"4859121137597195236\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4859121137597195236'\",\r\n \"nonCompliantResources\": 4152\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"4047897157028507992\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e46af646ebdb461dba708e01' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474' and PolicyDefinitionReferenceId eq '4047897157028507992'\",\r\n \"nonCompliantResources\": 1499\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50'\",\r\n \"nonCompliantResources\": 1499,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/eeade3e0bd4a4d4aa46efc50' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 1499\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced'\",\r\n \"nonCompliantResources\": 1499,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/7c7d772253b746c891c1eced' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c8b79b49-a579-4045-984e-1b249ab8b474'\",\r\n \"nonCompliantResources\": 1499\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test'\",\r\n \"nonCompliantResources\": 480,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 480\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030\",\r\n \"policySetDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policysetdefinitions/e4a08f18-4e3e-47af-a2eb-cc96d8c9a01f\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030'\",\r\n \"nonCompliantResources\": 480,\r\n \"nonCompliantPolicies\": 3\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and its value'\",\r\n \"nonCompliantResources\": 480\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/audit a tag and it's value'\",\r\n \"nonCompliantResources\": 478\r\n }\r\n },\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/e4a08f18-4e3e-47af-a2eb-cc96d8c9a030' and PolicyDefinitionId eq '/providers/microsoft.authorization/policydefinitions/655cb504-bcee-4362-bd4c-402e6aa38759'\",\r\n \"nonCompliantResources\": 1\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite'\",\r\n \"nonCompliantResources\": 480,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/test livesite' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/locationauditdefinition'\",\r\n \"nonCompliantResources\": 480\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/cf6bec2814bb49b9b423045b\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/cf6bec2814bb49b9b423045b'\",\r\n \"nonCompliantResources\": 113,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/1f20036f-28c3-48f3-9266-05d50fe391f4\",\r\n \"effect\": \"audit\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/cf6bec2814bb49b9b423045b' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/1f20036f-28c3-48f3-9266-05d50fe391f4'\",\r\n \"nonCompliantResources\": 113\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"policyAssignmentId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573\",\r\n \"policySetDefinitionId\": \"\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573'\",\r\n \"nonCompliantResources\": 112,\r\n \"nonCompliantPolicies\": 1\r\n },\r\n \"policyDefinitions\": [\r\n {\r\n \"policyDefinitionReferenceId\": \"\",\r\n \"policyDefinitionId\": \"/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c7b9982d-2f50-4730-935f-5c241982a441\",\r\n \"effect\": \"auditifnotexists\",\r\n \"results\": {\r\n \"queryResultsUri\": \"https://management.azure.com/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04 00:00:00Z&$to=2018-05-22 23:56:55Z&$filter=IsCompliant eq false and PolicyAssignmentId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policyassignments/45ab2ab7898d45ebb3087573' and PolicyDefinitionId eq '/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/microsoft.authorization/policydefinitions/c7b9982d-2f50-4730-935f-5c241982a441'\",\r\n \"nonCompliantResources\": 112\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithApply.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithApply.json
index 5ef4455745440..7f02c84e270f9 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithApply.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithApply.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$apply=groupby((PolicyAssignmentId%2C%20PolicyDefinitionId%2C%20ResourceId))%2Fgroupby((PolicyAssignmentId%2C%20PolicyDefinitionId)%2C%20aggregate(%24count%20as%20NumResources))",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkYXBwbHk9Z3JvdXBieSUyOCUyOFBvbGljeUFzc2lnbm1lbnRJZCUyQyUyMFBvbGljeURlZmluaXRpb25JZCUyQyUyMFJlc291cmNlSWQlMjklMjklMkZncm91cGJ5JTI4JTI4UG9saWN5QXNzaWdubWVudElkJTJDJTIwUG9saWN5RGVmaW5pdGlvbklkJTI5JTJDJTIwYWdncmVnYXRlJTI4JTI0Y291bnQlMjBhcyUyME51bVJlc291cmNlcyUyOSUyOQ==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$apply=groupby((PolicyAssignmentId%2C%20PolicyDefinitionId%2C%20ResourceId))%2Fgroupby((PolicyAssignmentId%2C%20PolicyDefinitionId)%2C%20aggregate(%24count%20as%20NumResources))",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiRhcHBseT1ncm91cGJ5JTI4JTI4UG9saWN5QXNzaWdubWVudElkJTJDJTIwUG9saWN5RGVmaW5pdGlvbklkJTJDJTIwUmVzb3VyY2VJZCUyOSUyOSUyRmdyb3VwYnklMjglMjhQb2xpY3lBc3NpZ25tZW50SWQlMkMlMjBQb2xpY3lEZWZpbml0aW9uSWQlMjklMkMlMjBhZ2dyZWdhdGUlMjglMjRjb3VudCUyMGFzJTIwTnVtUmVzb3VyY2VzJTI5JTI5",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithFilter.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithFilter.json
index 5d37bccc9dacb..8efa29bdbb8f9 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithFilter.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithFilter.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$filter=IsCompliant%20eq%20false%20and%20PolicyDefinitionAction%20eq%20'deny'",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkZmlsdGVyPUlzQ29tcGxpYW50JTIwZXElMjBmYWxzZSUyMGFuZCUyMFBvbGljeURlZmluaXRpb25BY3Rpb24lMjBlcSUyMCUyN2RlbnklMjc=",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$filter=IsCompliant%20eq%20false%20and%20PolicyDefinitionAction%20eq%20'deny'",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiRmaWx0ZXI9SXNDb21wbGlhbnQlMjBlcSUyMGZhbHNlJTIwYW5kJTIwUG9saWN5RGVmaW5pdGlvbkFjdGlvbiUyMGVxJTIwJTI3ZGVueSUyNw==",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithFrom.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithFrom.json
index 1cb532c9d8e64..4620e39d3e82a 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithFrom.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithFrom.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$from=2018-04-04T00:00:00Z",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkZnJvbT0yMDE4LTA0LTA0VDAwJTNBMDAlM0EwMFo=",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$from=2018-04-04T00:00:00Z",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiRmcm9tPTIwMTgtMDQtMDRUMDAlM0EwMCUzQTAwWg==",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithOrderBy.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithOrderBy.json
index 6d45a5ac6b95a..ee7349098ac29 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithOrderBy.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithOrderBy.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$orderby=PolicyAssignmentId%20desc",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkb3JkZXJieT1Qb2xpY3lBc3NpZ25tZW50SWQlMjBkZXNj",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$orderby=PolicyAssignmentId%20desc",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiRvcmRlcmJ5PVBvbGljeUFzc2lnbm1lbnRJZCUyMGRlc2M=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithSelect.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithSelect.json
index c810bb116ba34..05889374b23e0 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithSelect.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithSelect.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$select=Timestamp%2C%20ResourceId%2C%20PolicyAssignmentId%2C%20PolicyDefinitionId%2C%20IsCompliant%2C%20SubscriptionId%2C%20PolicyDefinitionAction",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkc2VsZWN0PVRpbWVzdGFtcCUyQyUyMFJlc291cmNlSWQlMkMlMjBQb2xpY3lBc3NpZ25tZW50SWQlMkMlMjBQb2xpY3lEZWZpbml0aW9uSWQlMkMlMjBJc0NvbXBsaWFudCUyQyUyMFN1YnNjcmlwdGlvbklkJTJDJTIwUG9saWN5RGVmaW5pdGlvbkFjdGlvbg==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$select=Timestamp%2C%20ResourceId%2C%20PolicyAssignmentId%2C%20PolicyDefinitionId%2C%20IsCompliant%2C%20SubscriptionId%2C%20PolicyDefinitionAction",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiRzZWxlY3Q9VGltZXN0YW1wJTJDJTIwUmVzb3VyY2VJZCUyQyUyMFBvbGljeUFzc2lnbm1lbnRJZCUyQyUyMFBvbGljeURlZmluaXRpb25JZCUyQyUyMElzQ29tcGxpYW50JTJDJTIwU3Vic2NyaXB0aW9uSWQlMkMlMjBQb2xpY3lEZWZpbml0aW9uQWN0aW9u",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithTo.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithTo.json
index e465d110b30d0..0a27573ad5bf5 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithTo.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithTo.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNA==",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {
diff --git a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithTop.json b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithTop.json
index 203368462f9f5..774a9d8deb087 100644
--- a/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithTop.json
+++ b/src/SDKs/PolicyInsights/Management/PolicyInsights.Tests/SessionRecords/PolicyInsights.Tests.PolicyInsightsTests/QueryOptions_QueryResultsWithTop.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-04-04&$top=10",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNC0wNCYkdG9wPTEw",
+ "RequestUri": "/subscriptions/d0610b27-9663-4c05-89f8-5b4be01e86a5/providers/Microsoft.PolicyInsights/policyStates/latest/queryResults?api-version=2018-07-01-preview&$top=10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDA2MTBiMjctOTY2My00YzA1LTg5ZjgtNWI0YmUwMWU4NmE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuUG9saWN5SW5zaWdodHMvcG9saWN5U3RhdGVzL2xhdGVzdC9xdWVyeVJlc3VsdHM/YXBpLXZlcnNpb249MjAxOC0wNy0wMS1wcmV2aWV3JiR0b3A9MTA=",
"RequestMethod": "POST",
"RequestBody": "",
"RequestHeaders": {