Skip to content

Commit

Permalink
fix rbac issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelle Broekhuijsen committed Aug 8, 2023
1 parent 4509089 commit b2c0439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ This repository contains a set of scripts and workflows to cleanup an Azure tena

The workflows utilize a Service Principal to perform the cleanup. The Service Principal must have the following permissions:

- Contributor on the subscriptions you want to cleanup for resource cleanup.
- Contributor on the root tenant group if you want to cleanup management groups.
- Contributor on the subscriptions if you want to cleanup for resource cleanup.
- Owner on the root tenant group if you want to cleanup management groups.

The workflows rely on OpenId Connect for authentication. See [this](https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Cwindows#use-the-azure-login-action-with-openid-connect) for info on how to configure your SPN for OIDC-authentication.

Expand Down
2 changes: 0 additions & 2 deletions Remove-AzManagementGroups.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ param (
$TenantId
)

# $ErrorActionPreference = 'SilentlyContinue'

#Get all management groups except the root group
$managementGroups = Get-AzManagementGroup | Where-Object { $_.Name -ne $TenantId }

Expand Down

0 comments on commit b2c0439

Please sign in to comment.