Skip to content

Commit bae9a4b

Browse files
Merge pull request #210759 from rolyon/rolyon-rbac-role-assignments-limit-update-v2
[Azure RBAC] Role assignments limit update v2
2 parents 1f1b091 + f4b2593 commit bae9a4b

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

articles/role-based-access-control/best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ For more information, see [What is Azure AD Privileged Identity Management?](../
4141

4242
## Assign roles to groups, not users
4343

44-
To make role assignments more manageable, avoid assigning roles directly to users. Instead, assign roles to groups. Assigning roles to groups instead of users also helps minimize the number of role assignments, which has a [limit of role assignments per subscription](troubleshooting.md#limits).
44+
To make role assignments more manageable, avoid assigning roles directly to users. Instead, assign roles to groups. Assigning roles to groups instead of users also helps minimize the number of role assignments, which has a [limit of role assignments per subscription](../azure-resource-manager/management/azure-subscription-service-limits.md#azure-rbac-limits).
4545

4646
## Assign roles using the unique role ID instead of the role name
4747

articles/role-based-access-control/conditions-custom-security-attributes-example.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: role-based-access-control
88
ms.subservice: conditions
99
ms.topic: conceptual
1010
ms.workload: identity
11-
ms.date: 11/16/2021
11+
ms.date: 09/13/2022
1212
ms.author: rolyon
1313

1414
#Customer intent: As a dev, devops, or it admin, I want to
@@ -20,7 +20,7 @@ ms.author: rolyon
2020
> Custom security attributes are currently in PREVIEW.
2121
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
2222
23-
Azure role-based access control (Azure RBAC) currently supports 2,000 role assignments in a subscription. If you need to create hundreds or even thousands of Azure role assignments, you might encounter this limit. Managing hundreds or thousands of role assignments can be difficult. Depending on your scenario, you might be able to reduce the number of role assignments and make it easier to manage access.
23+
Azure role-based access control (Azure RBAC) has a [limit of role assignments per subscription](../azure-resource-manager/management/azure-subscription-service-limits.md#azure-rbac-limits). If you need to create hundreds or even thousands of Azure role assignments, you might encounter this limit. Managing hundreds or thousands of role assignments can be difficult. Depending on your scenario, you might be able to reduce the number of role assignments and make it easier to manage access.
2424

2525
This article describes a solution to scale the management of role assignments by using [Azure attribute-based access control (Azure ABAC)](conditions-overview.md) conditions and [Azure AD custom security attributes](../active-directory/fundamentals/custom-security-attributes-overview.md) for principals.
2626

@@ -33,7 +33,7 @@ Consider a company named Contoso with thousands of customers that wants to set u
3333
- Represent each customer by a unique Azure AD service principal.
3434
- Allow each customer to access objects in their container, but not other containers.​
3535

36-
This configuration could potentially require 256,000 [Storage Blob Data Owner](built-in-roles.md#storage-blob-data-owner) role assignments in a subscription, which is well beyond the 2,000 role assignments limit. Having this many role assignments would be difficult, if not impossible, to maintain.
36+
This configuration could potentially require 256,000 [Storage Blob Data Owner](built-in-roles.md#storage-blob-data-owner) role assignments in a subscription, which is well beyond the role assignments limit. Having this many role assignments would be difficult, if not impossible, to maintain.
3737

3838
![Diagram showing thousands for role assignments.](./media/conditions-custom-security-attributes-example/role-assignments-multiple.png)
3939

articles/role-based-access-control/custom-roles.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: amycolannino
77
ms.service: role-based-access-control
88
ms.topic: conceptual
99
ms.workload: identity
10-
ms.date: 08/19/2022
10+
ms.date: 09/13/2022
1111
ms.author: rolyon
1212
---
1313

@@ -20,7 +20,7 @@ ms.author: rolyon
2020
2121
If the [Azure built-in roles](built-in-roles.md) don't meet the specific needs of your organization, you can create your own custom roles. Just like built-in roles, you can assign custom roles to users, groups, and service principals at management group (in preview only), subscription, and resource group scopes.
2222

23-
Custom roles can be shared between subscriptions that trust the same Azure AD tenant. There is a limit of **5,000** custom roles per tenant. (For Azure Germany and Azure China 21Vianet, the limit is 2,000 custom roles.) Custom roles can be created using the Azure portal, Azure PowerShell, Azure CLI, or the REST API.
23+
Custom roles can be shared between subscriptions that trust the same Azure AD tenant. There is a limit of **5,000** custom roles per tenant. (For Azure China 21Vianet, the limit is 2,000 custom roles.) Custom roles can be created using the Azure portal, Azure PowerShell, Azure CLI, or the REST API.
2424

2525
## Steps to create a custom role
2626

@@ -207,7 +207,7 @@ Here are steps to help find the role assignments before deleting a custom role:
207207
The following list describes the limits for custom roles.
208208

209209
- Each tenant can have up to **5000** custom roles.
210-
- Azure Germany and Azure China 21Vianet can have up to 2000 custom roles for each tenant.
210+
- Azure China 21Vianet can have up to 2000 custom roles for each tenant.
211211
- You cannot set `AssignableScopes` to the root scope (`"/"`).
212212
- You cannot use wildcards (`*`) in `AssignableScopes`. This wildcard restriction helps ensure a user can't potentially obtain access to a scope by updating the role definition.
213213
- You can only define one management group in `AssignableScopes` of a custom role. Adding a management group to `AssignableScopes` is currently in preview.

articles/role-based-access-control/role-assignments-list-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: amycolannino
77
ms.service: role-based-access-control
88
ms.topic: how-to
99
ms.workload: identity
10-
ms.date: 08/26/2022
10+
ms.date: 09/13/2022
1111
ms.author: rolyon
1212
---
1313

@@ -130,7 +130,7 @@ You can list role assignments for system-assigned and user-assigned managed iden
130130

131131
## List number of role assignments
132132

133-
You can have up to **2000** role assignments in each subscription. This limit includes role assignments at the subscription, resource group, and resource scopes. To help you keep track of this limit, the **Role assignments** tab includes a chart that lists the number of role assignments for the current subscription.
133+
You can have up to **4000** role assignments in each subscription. This limit includes role assignments at the subscription, resource group, and resource scopes. To help you keep track of this limit, the **Role assignments** tab includes a chart that lists the number of role assignments for the current subscription.
134134

135135
The role assignments limit for a subscription is currently being increased. For more information, see [Troubleshoot Azure RBAC](troubleshooting.md#limits).
136136

articles/role-based-access-control/role-assignments-steps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: amycolannino
77
ms.service: role-based-access-control
88
ms.topic: how-to
99
ms.workload: identity
10-
ms.date: 11/12/2021
10+
ms.date: 09/13/2022
1111
ms.author: rolyon
1212
---
1313

@@ -80,7 +80,7 @@ If you are using a service principal to assign roles, you might get the error "I
8080

8181
Once you know the security principal, role, and scope, you can assign the role. You can assign roles using the Azure portal, Azure PowerShell, Azure CLI, Azure SDKs, or REST APIs.
8282

83-
You can have up to **2000** role assignments in each subscription. This limit includes role assignments at the subscription, resource group, and resource scopes. You can have up to **500** role assignments in each management group. The role assignments limit for a subscription is currently being increased. For more information, see [Troubleshoot Azure RBAC](troubleshooting.md#limits).
83+
You can have up to **4000** role assignments in each subscription. This limit includes role assignments at the subscription, resource group, and resource scopes. You can have up to **500** role assignments in each management group. For more information, see [Troubleshoot Azure RBAC](troubleshooting.md#limits).
8484

8585
Check out the following articles for detailed steps for how to assign roles.
8686

articles/role-based-access-control/troubleshooting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: role-based-access-control
99
ms.workload: identity
1010
ms.tgt_pltfrm: na
1111
ms.topic: troubleshooting
12-
ms.date: 07/28/2022
12+
ms.date: 09/13/2022
1313
ms.author: rolyon
1414
ms.custom: seohack1, devx-track-azurecli, devx-track-azurepowershell
1515
---
@@ -27,10 +27,10 @@ When you try to assign a role, you get the following error message:
2727

2828
**Cause**
2929

30-
Azure supports up to **2000** role assignments per subscription. This limit includes role assignments at the subscription, resource group, and resource scopes, but not at the management group scope.
30+
Azure supports up to **4000** role assignments per subscription. This limit includes role assignments at the subscription, resource group, and resource scopes, but not at the management group scope.
3131

3232
> [!NOTE]
33-
> Starting November 2021, the role assignments limit for all Azure subscriptions is being automatically increased from **2000** to **4000**. There is no action that you need to take for your subscription. The limit increase will take several months.
33+
> For specialized clouds, such as Azure Government and Azure China 21Vianet, the limit is **2000** role assignments per subscription.
3434
3535
**Solution**
3636

@@ -338,7 +338,7 @@ When you try to create a new custom role, you get the following message:
338338

339339
**Cause**
340340

341-
Azure supports up to **5000** custom roles in a directory. (For Azure Germany and Azure China 21Vianet, the limit is 2000 custom roles.)
341+
Azure supports up to **5000** custom roles in a directory. (For Azure China 21Vianet, the limit is 2000 custom roles.)
342342

343343
**Solution**
344344

includes/role-based-access-control/limits.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
| Area | Resource | Limit |
1414
| --- | --- | --- |
1515
| [Azure role assignments](../../articles/role-based-access-control/overview.md) | | |
16-
| | Azure role assignments per Azure subscription<br/>The role assignments limit for a subscription is currently being increased. For more information, see [Troubleshoot Azure RBAC](../../articles/role-based-access-control/troubleshooting.md#limits). | 2,000 |
16+
| | Azure role assignments per Azure subscription | 4,000 |
17+
| | Azure role assignments per Azure subscription<br/>(for Azure Government and Azure China 21Vianet) | 2,000 |
1718
| | Azure role assignments per management group | 500 |
1819
| | Size of description for Azure role assignments | 2 KB |
1920
| | Size of [condition](../../articles/role-based-access-control/conditions-overview.md) for Azure role assignments | 8 KB |
2021
| [Azure custom roles](../../articles/role-based-access-control/custom-roles.md) | | |
2122
| | Azure custom roles per tenant | 5,000 |
22-
| | Azure custom roles per tenant<br/>(for Azure Germany and Azure China 21Vianet) | 2,000 |
23+
| | Azure custom roles per tenant<br/>(for Azure China 21Vianet) | 2,000 |
2324
| | Size of role name for Azure custom roles | 512 chars |
2425
| | Size of description for Azure custom roles | 2 KB |
2526
| | Number of assignable scopes for Azure custom roles | 2,000 |

0 commit comments

Comments
 (0)