From 1cd3eb5b63b8b6175d6a83523847b590378c5829 Mon Sep 17 00:00:00 2001 From: Anthony Watherston Date: Tue, 13 Sep 2022 13:36:00 +1000 Subject: [PATCH] Fixed role plan change count --- .../Deploy/Deploy-AzPoliciesInitiativesAssignmentsFromPlan.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Deploy/Deploy-AzPoliciesInitiativesAssignmentsFromPlan.ps1 b/Scripts/Deploy/Deploy-AzPoliciesInitiativesAssignmentsFromPlan.ps1 index ae9daffb..3fdb60f5 100644 --- a/Scripts/Deploy/Deploy-AzPoliciesInitiativesAssignmentsFromPlan.ps1 +++ b/Scripts/Deploy/Deploy-AzPoliciesInitiativesAssignmentsFromPlan.ps1 @@ -407,7 +407,7 @@ if (!$noChanges) { } -$numberOfRoleChanges = ($rolesPlan.removed).Count + ($rolesPlan.removed).Count +$numberOfRoleChanges = ($rolesPlan.added).Count + ($rolesPlan.removed).Count Write-Information "===================================================================================================" Write-Information "Writing $($numberOfRoleChanges) Role Assignment changes to plan file $RolesPlanFile" Write-Information "==================================================================================================="