From 3e382aa9079d0b4cc790cd1ba6151b4ab5f3254b Mon Sep 17 00:00:00 2001 From: mgeeky Date: Tue, 25 Jan 2022 21:53:51 +0100 Subject: [PATCH] Dump-AzureRoles.ps1 --- clouds/azure/Azure Roles/Dump-AzureRoles.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clouds/azure/Azure Roles/Dump-AzureRoles.ps1 b/clouds/azure/Azure Roles/Dump-AzureRoles.ps1 index 1b55948..73e6a1c 100644 --- a/clouds/azure/Azure Roles/Dump-AzureRoles.ps1 +++ b/clouds/azure/Azure Roles/Dump-AzureRoles.ps1 @@ -158,7 +158,7 @@ Second part contains full definitions of each role along with their permissions $count = 0 $azureRbacRoles | % { $count += 1 - #Write-Host "| $count | ``$($_.Name)`` | _$($_.Description)_ | ``$($_.Id)`` |" + Write-Host "| $count | ``$($_.Name)`` | _$($_.Description)_ | ``$($_.Id)`` |" } Write-Host @" @@ -171,12 +171,12 @@ Second part contains full definitions of each role along with their permissions |---|----------|-----------------|--------| "@ - #$azureADRoles = (Get-AzureADDirectoryRoleTemplate | sort -property displayname) + $azureADRoles = (Get-AzureADDirectoryRoleTemplate | sort -property displayname) $count = 0 $azureADRoles | % { $count += 1 - #Write-Host "| $count | ``$($_.DisplayName)`` | _$($_.Description)_ | ``$($_.ObjectId)`` |" + Write-Host "| $count | ``$($_.DisplayName)`` | _$($_.Description)_ | ``$($_.ObjectId)`` |" } Write-Host @" @@ -204,6 +204,6 @@ This section contains detailed definitions of each role along with their assigne "@ $azureADRoles | % { - #Get-ARTADRolePermissions -RoleName $_.DisplayName + Get-ARTADRolePermissions -RoleName $_.DisplayName } } \ No newline at end of file