Editar

Partilhar via


Manage access

Azure uses Azure role-based access control (Azure RBAC) for managing access to Azure resources. It helps you manage who has access to Azure resources, what they can do with those resources, and what areas they can access.

To control access to resources through Azure RBAC, assign Azure roles by using role assignments and role definitions. This is a key concept to understand; it's how permissions are enforced.

You can manage roles and role assignments directly in the Azure portal, or you can use PowerShell, CLI, ARM templates, or REST APIs.

Role assignment

Role assignments define the resources that users, groups, service principals, and managed identities can access. A role assignment consists of three elements: security principal, role definition, and scope.

Security principal

A security principal is an object that represents a user, group, service principal, or managed identity requesting access to Azure resources. You can assign a role to any of these security principals. A security principal is either a user-assigned managed identity or a system-assigned managed identity.

Security principal

Role definition

A role definition, sometimes called simply a role, is a collection of permissions. It lists the actions such as read, write, and delete, that a user is allowed to perform. Roles can be high level, such as Owner, or specific to an Azure managed service.

Azure includes (1) several built-in role definitions you can use and (2) the following three core roles for managing access:

  • The Owner role can manage everything, including access to resources.
  • The Contributor role can manage everything except access to resources.
  • The Reader role can view everything but not make changes.

Role definitions

Note

Here, we are using Azure roles, not Azure Active Directory (Azure AD) roles. To understand the differences and when each role is used, see Classic subscription administrator roles, Azure roles, and Azure AD roles.

Scope

Scope is the set of resources that the access applies to. When you assign a role, you can further limit the allowed actions by defining a scope. In Azure, you can specify a scope at four levels: management group, subscription, resource group, or resource. For details, see Understand scope for RBAC.

Manage RBAC scope

Plan your access control strategy

Managing who can access your Azure resources and subscriptions is an important part of your Azure governance strategy. In addition, assigning group-based access rights and privileges is a good practice; dealing with groups instead of individual users simplifies maintenance of access policies, provides consistent management of access across teams, and reduces configuration errors.

When you plan an access control strategy, grant users the least privilege required to get their work done. To learn more about designing access for your studio, see Cloud Adoption Framework: Azure role-based access control. For an overview of the Azure RBAC practices that we recommend for inclusion in your identity and security strategy, see Azure identity management and access control security best practices.

Next steps