Get AzRoleDefinition by Action

Ever wanted to get all Azure roles containing a specific Action (permission) just to find that specific standard role to use when delegating permissions in Azure?
Here is a small snippet of PowerShell to do just that:

Looking through all roles, the question I often ask myself;
Is it better to use any of these built in roles OR is it better to create a custom role with the exact needed actions/notActions with a more descriptive name?

Related Posts