$resourceGroupName = “az-dna-xxxxx-test”
$roleAssignments = Get-AzRoleAssignment -ResourceGroupName $resourceGroupName
foreach ($assignment in $roleAssignments) {
Write-Host "DisplayName: $($assignment.DisplayName)"
Write-Host "Role Definition Name: $($assignment.RoleDefinitionName)"
Write-Host "Scope: $($assignment.Scope)"
}
getting blank value for displayname is there any value i have to put in to get display name value
output is
DisplayName :
RoleDefinitionName : Monitoring Contributor
Scope : /providers/Microsoft.Management/managementGroups/xxxxx
help me get display name value in output
Meghana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.