Skip to content

Commit 5606560

Browse files
authored
Merge pull request #635 from Blackmist/320434-rbac
RBAC updates
2 parents 8c3b8f2 + cfa92d6 commit 5606560

File tree

3 files changed

+42
-16
lines changed

3 files changed

+42
-16
lines changed

articles/ai-studio/concepts/rbac-ai-studio.md

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,33 +43,36 @@ Here's a table of the built-in roles and their permissions for the hub:
4343
| Azure AI Inference Deployment Operator | Perform all actions required to create a resource deployment within a resource group. |
4444
| Reader | Read only access to the hub. This role is automatically assigned to all project members within the hub. |
4545

46-
4746
The key difference between Contributor and Azure AI Developer is the ability to make new hubs. If you don't want users to make new hubs (due to quota, cost, or just managing how many hubs you have), assign the Azure AI Developer role.
4847

4948
Only the Owner and Contributor roles allow you to make a hub. At this time, custom roles can't grant you permission to make hubs.
5049

50+
### Azure AI Developer role
51+
5152
The full set of permissions for the new "Azure AI Developer" role are as follows:
5253

5354
```json
5455
{
5556
"Permissions": [
5657
{
57-
"Actions": [
58-
59-
"Microsoft.MachineLearningServices/workspaces/*/read",
60-
"Microsoft.MachineLearningServices/workspaces/*/action",
61-
"Microsoft.MachineLearningServices/workspaces/*/delete",
62-
"Microsoft.MachineLearningServices/workspaces/*/write"
63-
],
58+
"Actions": [
59+
"Microsoft.MachineLearningServices/workspaces/*/read",
60+
"Microsoft.MachineLearningServices/workspaces/*/action",
61+
"Microsoft.MachineLearningServices/workspaces/*/delete",
62+
"Microsoft.MachineLearningServices/workspaces/*/write",
63+
"Microsoft.MachineLearningServices/locations/*/read",
64+
"Microsoft.Authorization/*/read",
65+
"Microsoft.Resources/deployments/*"
66+
],
6467

65-
"NotActions": [
66-
"Microsoft.MachineLearningServices/workspaces/delete",
67-
"Microsoft.MachineLearningServices/workspaces/write",
68-
"Microsoft.MachineLearningServices/workspaces/listKeys/action",
69-
"Microsoft.MachineLearningServices/workspaces/hubs/write",
70-
"Microsoft.MachineLearningServices/workspaces/hubs/delete",
71-
"Microsoft.MachineLearningServices/workspaces/featurestores/write",
72-
"Microsoft.MachineLearningServices/workspaces/featurestores/delete"
68+
"NotActions": [
69+
"Microsoft.MachineLearningServices/workspaces/delete",
70+
"Microsoft.MachineLearningServices/workspaces/write",
71+
"Microsoft.MachineLearningServices/workspaces/listKeys/action",
72+
"Microsoft.MachineLearningServices/workspaces/hubs/write",
73+
"Microsoft.MachineLearningServices/workspaces/hubs/delete",
74+
"Microsoft.MachineLearningServices/workspaces/featurestores/write",
75+
"Microsoft.MachineLearningServices/workspaces/featurestores/delete"
7376
],
7477
"DataActions": [
7578
"Microsoft.CognitiveServices/accounts/OpenAI/*",
@@ -83,6 +86,9 @@ The full set of permissions for the new "Azure AI Developer" role are as follows
8386
]
8487
}
8588
```
89+
90+
If the built-in Azure AI Developer role doesn't meet your needs, you can create a [custom role](#create-custom-roles).
91+
8692
## Default roles for projects
8793

8894
Projects in AI Studio have built-in roles that are available by default.
@@ -197,6 +203,26 @@ The following JSON example defines a custom AI Studio developer role at the subs
197203
}
198204
```
199205

206+
For steps on creating a custom role, use one of the following articles:
207+
- [Azure portal](/azure/role-based-access-control/custom-roles-portal)
208+
- [Azure CLI](/azure/role-based-access-control/custom-roles-cli)
209+
- [Azure PowerShell](/azure/role-based-access-control/custom-roles-powershell)
210+
211+
For more information on creating custom roles in general, visit the [Azure custom roles](/azure/role-based-access-control/custom-roles) article.
212+
213+
## Assigning roles in AI Studio
214+
215+
You can add users and assign roles directly from Azure AI Studio at either the hub or project level. From a hub or project overview page, select **New user** to add a user.
216+
217+
> [!NOTE]
218+
> You are limited to selecting built-in roles. If you need to assign custom roles, you must use the [Azure portal](/azure/role-based-access-control/role-assignments-portal), [Azure CLI](/azure/role-based-access-control/role-assignments-cli), or [Azure PowerShell](/azure/role-based-access-control/role-assignments-powershell).
219+
220+
:::image type="content" source="../media/concepts/hub-overview-add-user.png" lightbox="../media/concepts/hub-overview-add-user.png" alt-text="Screenshot of the Azure AI Studio hub overview with the new user button highlighted.":::
221+
222+
You are then prompted to enter the user information and select a built-in role.
223+
224+
:::image type="content" source="../media/concepts/add-resource-users.png" lightbox="../media/concepts/add-resource-users.png" alt-text="Screenshot of the add users prompt with the role set to Azure AI Developer.":::
225+
200226
## Scenario: Use a customer-managed key
201227

202228
When configuring a hub to use a customer-managed key (CMK), an Azure Key Vault is used to store the key. The user or service principal used to create the workspace must have owner or contributor access to the key vault.
23.1 KB
Loading
176 KB
Loading

0 commit comments

Comments
 (0)