Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
singhgss committed Nov 17, 2023
1 parent 716c16b commit 82fbd7c
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,10 @@ Function Confirm-GSAPrerequisites {
If ($roleAssignments.id) {
Write-Verbose "role assignment: '$roleAssignments.id'"
Write-Verbose "Removing role assignment: $(($roleAssignments).id)"
Remove-AzRoleAssignment -RoleDefinitionName '2cb8e1b1-fcf1-439e-bab7-b1b8b008c294' -ObjectId $roleAssignments.id

# Write-Error "A role assignment exists with the name '2cb8e1b1-fcf1-439e-bab7-b1b8b008c294' at the Management group '$lighthouseTargetManagementGroupID'. This was likely
# created by a previous Guardrails deployment and must be removed. Navigate to the Managment Group in the Portal and delete the Owner role assignment listed as 'Identity Not Found'"
# Exit
# Remove-AzRoleAssignment -RoleDefinitionName '2cb8e1b1-fcf1-439e-bab7-b1b8b008c294' -ObjectId $roleAssignments.id
Write-Error "A role assignment exists with the name '2cb8e1b1-fcf1-439e-bab7-b1b8b008c294' at the Management group '$lighthouseTargetManagementGroupID'. This was likely
created by a previous Guardrails deployment and must be removed. Navigate to the Managment Group in the Portal and delete the Owner role assignment listed as 'Identity Not Found'"
Exit
}

# check if lighthouse Custom-RegisterLighthouseResourceProvider exists at a different scope
Expand Down

0 comments on commit 82fbd7c

Please sign in to comment.