From b37dc226186337133f8c4a3f9df4fd96349ff0ef Mon Sep 17 00:00:00 2001 From: Chris Stackhouse Date: Mon, 14 Jan 2019 18:08:33 -0800 Subject: [PATCH] Fix for issue #7522 --- .../ResourceManager/Implementation/Policy/PolicyCmdletBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/ResourceManager/Implementation/Policy/PolicyCmdletBase.cs b/src/Resources/ResourceManager/Implementation/Policy/PolicyCmdletBase.cs index 4bb31539d762..c8ff86927516 100644 --- a/src/Resources/ResourceManager/Implementation/Policy/PolicyCmdletBase.cs +++ b/src/Resources/ResourceManager/Implementation/Policy/PolicyCmdletBase.cs @@ -88,7 +88,7 @@ protected PSObject[] GetFilteredOutputObjects(string resourceType, ListFilter fi return true; } - var policyType = result.GetPSObjectProperty("Properties.policyType"); + var policyType = ((PSObject)result.Properties["Properties"].Value).Properties["policyType"].Value; return policyType == null || string.Equals(policyType.ToString(), filter.ToString(), StringComparison.OrdinalIgnoreCase); };