Linux Docs for Azure
Home
Flagged Docs
Pull Requests
Stats
Login with GitHub
Logout
Proposed Pull Request Change
ms.service
ms.topic
ms.date
author
ms.author
resource-graph
include
07/10/2023
jaspkaur28
jaspkaur
📄 Document Links
View on GitHub
View on Microsoft Learn
⚠
Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines:
-
Output lines:
-
Ratio:
-
Side by Side
Inline Diff
Split Diff
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+
0
-
0
Compute Inline Diff
Computing diff...
+
0
-
0
Compute Split Diff
Computing diff...
--- ms.service: resource-graph ms.topic: include ms.date: 07/10/2023 author: jaspkaur28 ms.author: jaspkaur --- ### Get role assignments with key properties Provides a sample of [role assignments](/azure/role-based-access-control/role-assignments) and some of the resources relevant properties. ```kusto authorizationresources | where type =~ 'microsoft.authorization/roleassignments' | extend roleDefinitionId = properties.roleDefinitionId | extend principalType = properties.principalType | extend principalId = properties.principalId | extend scope = properties.scope | take 5 ``` # [Azure CLI](#tab/azure-cli) ```azurecli-interactive az graph query -q "authorizationresources | where type =~ 'microsoft.authorization/roleassignments' | extend roleDefinitionId = properties.roleDefinitionId | extend principalType = properties.principalType | extend principalId = properties.principalId | extend scope = properties.scope | take 5" ``` # [Azure PowerShell](#tab/azure-powershell) ```azurepowershell-interactive Search-AzGraph -Query "authorizationresources | where type =~ 'microsoft.authorization/roleassignments' | extend roleDefinitionId = properties.roleDefinitionId | extend principalType = properties.principalType | extend principalId = properties.principalId | extend scope = properties.scope | take 5" ``` # [Portal](#tab/azure-portal) - Azure portal: <a href="https://portal.azure.com/#blade/HubsExtension/ArgQueryBlade/query/authorizationresources%0A%7C%20where%20type%20%3D~%20%27microsoft.authorization%2Froleassignments%27%0A%7C%20extend%20roleDefinitionId%20%3D%20properties.roleDefinitionId%0A%7C%20extend%20principalType%20%3D%20properties.principalType%0A%7C%20extend%20principalId%20%3D%20properties.principalId%0A%7C%20extend%20scope%20%3D%20properties.scope%0A%7C%20take%205" target="_blank">portal.azure.com</a> - Azure Government portal: <a href="https://portal.azure.us/#blade/HubsExtension/ArgQueryBlade/query/authorizationresources%0A%7C%20where%20type%20%3D~%20%27microsoft.authorization%2Froleassignments%27%0A%7C%20extend%20roleDefinitionId%20%3D%20properties.roleDefinitionId%0A%7C%20extend%20principalType%20%3D%20properties.principalType%0A%7C%20extend%20principalId%20%3D%20properties.principalId%0A%7C%20extend%20scope%20%3D%20properties.scope%0A%7C%20take%205" target="_blank">portal.azure.us</a> - Microsoft Azure operated by 21Vianet portal: <a href="https://portal.azure.cn/#blade/HubsExtension/ArgQueryBlade/query/authorizationresources%0A%7C%20where%20type%20%3D~%20%27microsoft.authorization%2Froleassignments%27%0A%7C%20extend%20roleDefinitionId%20%3D%20properties.roleDefinitionId%0A%7C%20extend%20principalType%20%3D%20properties.principalType%0A%7C%20extend%20principalId%20%3D%20properties.principalId%0A%7C%20extend%20scope%20%3D%20properties.scope%0A%7C%20take%205" target="_blank">portal.azure.cn</a> ---
Create Pull Request
Regenerate PR
Success!
Branch created successfully.
Create Pull Request on GitHub
Error: