Hi,
what is the correct way to create Adaxes Report that will show all explicit Azure role OWNER assignments?
I know how to do it in PowerShell so just to be sure, there is no builtin Adaxes feature.
$CurrentContext = Get-AzContext
$Subscriptions = Get-AzSubscription -TenantId $CurrentContext.Tenant.Id
foreach ($Subscription in $Subscriptions) {
$Context = Set-AzContext -TenantId $Subscription.TenantId -SubscriptionId $Subscription.Id -Force
Get-AzRoleAssignment | ? RoleDefinitionName -eq 'owner'
}
Thanks!