Skip to main content

How to manage Azure RBAC in Code

· 4 min read

What is Azure role-based access (RBAC)?

Azure role-based access control (RBAC) helps you manage who has access to Azure resources.

For example you can use RBAC to:

  • Allow the network team to manage virtual networks
  • Allow the database administrator group access to manage SQL databases
  • Allow a project team access to all resources in the project's resource group

Export Custom Roles from Azure

· 3 min read

The script below enables you to quickly export all your custom roles from Azure to either JSON or YAML files.

It will loop through all the subscriptions you have access to and get the custom roles.

By default it will write one JSON file for each custom role.