How to list (RBAC) role definitions in Azure?

The list of all roles in Azure is mostly a kind of hidden detail, that is not explicitelly very often used.
For more information about RBAC, please take a look here:

For everything you can do in Azure, there is a dedicated role. For example, Azure Kubernetes Service RBAC Admin or Azure Kubernetes Service Contributor Role, etc. There are many of them.

To get the list of all role definitions you can use following statement:

az role definition list

This will output a very, very long list that cannot be represented in the console (bash) window.

In this case you might want to find the specific role only. To do this you should first lookup the name of the role. For example:

This role is tracked uner the name:

"name": "3498e952-d568-435e-9b2c-8d77e338d7f7"

To lookup the full role definition use following command:

az role definition list -n "3498e952-d568-435e-9b2c-8d77e338d7f7"

You will get result like this:

    "assignableScopes": [
    "description": "Lets you manage all resources under cluster/namespace, except update or delete resource quotas and namespaces.",
    "id": "/subscriptions/74f2b754-46d2-4049-8b03-6371bf22efbb/providers/Microsoft.Authorization/roleDefinitions/3498e952-d568-435e-9b2c-8d77e338d7f7",
    "name": "3498e952-d568-435e-9b2c-8d77e338d7f7",
    "permissions": [
        "actions": [
        "dataActions": [
        "notActions": [],
        "notDataActions": [
    "roleName": "Azure Kubernetes Service RBAC Admin",
    "roleType": "BuiltInRole",
    "type": "Microsoft.Authorization/roleDefinitions"

comments powered by Disqus