From d8ed15eeb2c5a26fefa5505dcc1035f646611a04 Mon Sep 17 00:00:00 2001 From: Johan Dahlbom Date: Fri, 14 Jan 2022 12:53:04 +0100 Subject: [PATCH] Update jq filter for policyAssignments to exclude UMI and change IdentityType to Type (#530) * updated jq filter for policyAssignments * update jq filter to change identitytype to type --- .../Microsoft.Authorization/policyAssignments.template.jq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/template/Microsoft.Authorization/policyAssignments.template.jq b/src/data/template/Microsoft.Authorization/policyAssignments.template.jq index 2162731..9102876 100644 --- a/src/data/template/Microsoft.Authorization/policyAssignments.template.jq +++ b/src/data/template/Microsoft.Authorization/policyAssignments.template.jq @@ -19,5 +19,5 @@ } ], "outputs": {} -} | -.resources[] |= if .identity==null then del(.identity) else . end +} | .resources[] |= if .identity==null then del(.identity) elif .identity.UserAssignedIdentities==null then del(.identity.UserAssignedIdentities) else . end | + .resources[] |= if .identity.IdentityType !=null then .identity["Type"] = .identity.IdentityType | del(.identity.IdentityType) else . end