Skip to content

Commit

Permalink
Fix detection for user assigned identities (#631)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Watherston <[email protected]>
  • Loading branch information
anwather and Anthony Watherston authored May 15, 2024
1 parent 6129009 commit 6296f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Helpers/Build-AssignmentIdentityChanges.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Build-AssignmentIdentityChanges {
if ($hasExistingIdentity) {
$existingIdentityType = $existingIdentity.type
if ($existingIdentityType -eq "UserAssigned") {
$existingUserAssignedIdentity = ($existingIdentity.userAssignedIdentities | get-member)[-1].Name
$existingUserAssignedIdentity = $existingUserAssignedIdentity = $existingIdentity.userAssignedIdentities.Keys[0]
}
if ($existingIdentityType -eq "UserAssigned") {
$existingPrincipalId = $existingIdentity.userAssignedIdentities.$existingUserAssignedIdentity.principalId
Expand Down

0 comments on commit 6296f53

Please sign in to comment.