Skip to content

Commit 4b29da6

Browse files
authored
Merge pull request #191730 from ntrogh/alt-rbac
Updated Load Testing RBAC docs
2 parents d974431 + d042ad2 commit 4b29da6

9 files changed

+76
-9
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Manage roles in Azure Load Testing
3+
description: Learn how to access to an Azure Load Testing resource using Azure role-based access control (Azure RBAC).
4+
author: ntrogh
5+
ms.author: nicktrog
6+
services: load-testing
7+
ms.service: load-testing
8+
ms.topic: how-to
9+
ms.date: 03/15/2022
10+
ms.custom: template-how-to
11+
---
12+
13+
# Manage access to Azure Load Testing
14+
15+
In this article, you learn how to manage access (authorization) to an Azure Load Testing resource. [Azure role-based access control (Azure RBAC)](../role-based-access-control/overview.md) is used to manage access to Azure resources, such as the ability to create new resources or use existing ones. Users in your Azure Active Directory (Azure AD) are assigned specific roles, which grant access to resources.
16+
17+
> [!IMPORTANT]
18+
> Azure Load Testing is currently in preview. For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
19+
20+
## Prerequisites
21+
22+
To assign Azure roles, you must have:
23+
24+
* `Microsoft.Authorization/roleAssignments/write` permissions, such as [User Access Administrator](../role-based-access-control/built-in-roles.md#user-access-administrator) or [Owner](../role-based-access-control/built-in-roles.md#owner).
25+
26+
## Default roles
27+
28+
Azure Load Testing resources have three built-in roles that are available by default. When you add users to a resource, you can assign one of the built-in roles to grant permissions:
29+
30+
| Role | Access level |
31+
| --- | --- |
32+
| **Load Test Reader** | Read-only actions in the Load Testing resource. Readers can list and view tests and test runs in the resource. Readers can't create, update, or run tests. |
33+
| **Load Test Contributor** | View, create, edit, or delete (where applicable) tests and test runs in a Load Testing resource. |
34+
| **Load Test Owner** | Full access to the Load Testing resource, including the ability to view, create, edit, or delete (where applicable) assets in a resource. For example, you can modify or delete the Load Testing resource. |
35+
36+
If you have the **Owner**, **Contributor**, or **Load Test Owner** role at the subscription level, you automatically have the same permissions as the **Load Test Owner** at the resource level.
37+
38+
> [!IMPORTANT]
39+
> Role access can be scoped to multiple levels in Azure. For example, someone with owner access to a resource may not have owner access to the resource group that contains the resource. For more information, see [How Azure RBAC works](../role-based-access-control/overview.md#how-azure-rbac-works).
40+
41+
## Manage resource access
42+
43+
You can manage access to the Azure Load Testing resource by using the Azure portal:
44+
45+
1. In the [Azure portal](https://portal.azure.com), go to your Azure Load Testing resource.
46+
47+
1. On the left pane, select **Access Control (IAM)**, and then select **Add role assignment**.
48+
49+
:::image type="content" source="media/how-to-assign-roles/load-test-access-control.png" alt-text="Screenshot that shows how to configure access control.":::
50+
51+
1. Assign one of the Azure Load Testing [built-in roles](#default-roles). For details about how to assign roles, see [Assign Azure roles using the Azure portal](../role-based-access-control/role-assignments-portal.md).
52+
53+
The role assignments might take a few minutes to become active for your account. Refresh the webpage for the user interface to reflect the updated permissions.
54+
55+
:::image type="content" source="media/how-to-assign-roles/add-role-assignment.png" alt-text="Screenshot that shows the role assignment screen.":::
56+
57+
Alternatively, you can manage access without using the Azure portal:
58+
59+
- [PowerShell](../role-based-access-control/role-assignments-powershell.md)
60+
- [Azure CLI](../role-based-access-control/role-assignments-cli.md)
61+
- [REST API](../role-based-access-control/role-assignments-rest.md)
62+
- [Azure Resource Manager templates](../role-based-access-control/role-assignments-template.md)
63+
64+
## Next steps
65+
66+
* Learn more about [Using managed identities](./how-to-use-a-managed-identity.md).
67+
* Learn more about [Identifying performance bottlenecks (tutorial)](./tutorial-identify-bottlenecks-azure-portal.md).

articles/load-testing/how-to-use-a-managed-identity.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ You've now granted access to your Azure Load Testing resource to read the secret
104104

105105
## Next steps
106106

107-
To learn how to parameterize a load test by using secrets, see [Parameterize a load test](./how-to-parameterize-load-tests.md).
107+
* To learn how to parameterize a load test by using secrets, see [Parameterize a load test](./how-to-parameterize-load-tests.md).
108+
* Learn how to [Manage users and roles in Azure Load Testing](./how-to-assign-roles.md).

articles/load-testing/index.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ conceptualContent:
6161
- url: how-to-use-a-managed-identity.md
6262
itemType: how-to-guide
6363
text: Use a managed identity
64+
- url: how-to-assign-roles.md
65+
itemType: how-to-guide
66+
text: Manage users and roles
6467

6568
# Card
6669
- title: Analyze test results
187 KB
Loading
58.4 KB
Loading

articles/load-testing/quickstart-create-and-run-load-test.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ To create a Load Testing resource:
3434

3535
[!INCLUDE [azure-load-testing-create-portal](../../includes/azure-load-testing-create-in-portal.md)]
3636

37-
## <a name="role_assignment"></a> Configure role-based access
38-
39-
[!INCLUDE [azure-load-testing-role-assignment](../../includes/azure-load-testing-role-assignment.md)]
40-
4137
## <a name="jmeter"></a> Create an Apache JMeter script
4238

4339
In this section, you'll create a sample Apache JMeter script that you'll use in the next section to load test a web endpoint. If you already have a script, you can skip to [Create a load test](#create_test).

articles/load-testing/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
href: how-to-appservice-insights.md
4545
- name: Export test results
4646
href: how-to-export-test-results.md
47+
- name: Manage users and roles
48+
href: how-to-assign-roles.md
4749
- name: Use a managed identity
4850
href: how-to-use-a-managed-identity.md
4951
- name: Reference

articles/load-testing/tutorial-identify-bottlenecks-azure-portal.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ If you don't yet have a Load Testing resource, create one now:
107107

108108
[!INCLUDE [azure-load-testing-create-portal](../../includes/azure-load-testing-create-in-portal.md)]
109109

110-
### <a name="role_assignment"></a> Configure role-based access
111-
112-
[!INCLUDE [azure-load-testing-role-assignment](../../includes/azure-load-testing-role-assignment.md)]
113-
114110
### <a name="create_test"></a> Create a load test
115111

116112
To create a load test in the Load Testing resource for the sample app:

includes/azure-load-testing-create-in-portal.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ ms.date: 02/15/2022
4545
1. To view the new resource, select **Go to resource**.
4646

4747
:::image type="content" source="media/azure-load-testing-create-in-portal/create-azure-load-testing-goto-resource.png" alt-text="Screenshot that shows the deployment completion screen.":::
48+
49+
1. Optionally, [manage access to your Azure Load Testing resource](../articles/load-testing/how-to-assign-roles.md).

0 commit comments

Comments
 (0)