You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/concepts/rbac-ai-studio.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ The following table is an example of how to set up role-based access control for
123
123
| --- | --- | ---|
124
124
| IT admin | Owner of the hub | The IT admin can ensure the hub is set up to their enterprise standards. They can assign managers the Contributor role on the resource if they want to enable managers to make new hubs. Or they can assign managers the Azure AI Developer role on the resource to not allow for new hub creation. |
125
125
| Managers | Contributor or Azure AI Developer on the hub | Managers can manage the hub, audit compute resources, audit connections, and create shared connections. |
126
-
| Team lead/Lead developer | Azure AI Developer on the hub | Lead developers can create projects for their team and create shared resources (ex: compute and connections) at the hub level. After project creation, project owners can invite other members. |
126
+
| Team lead/Lead developer | Azure AI Developer on the hub | Lead developers can create projects for their team and create shared resources (such as compute and connections) at the hub level. After project creation, project owners can invite other members. |
127
127
| Team members/developers | Contributor or Azure AI Developer on the project | Developers can build and deploy AI models within a project and create assets that enable development such as computes and connections. |
128
128
129
129
## Access to resources created outside of the hub
@@ -214,6 +214,31 @@ If your AI Studio hub is configured with a **user-assigned managed identity**, t
214
214
215
215
Within the key vault, the user or service principal must have the create, get, delete, and purge access to the key through a key vault access policy. For more information, see [Azure Key Vault security](/azure/key-vault/general/security-features#controlling-access-to-key-vault-data).
216
216
217
+
## Scenario: Connections using Microsoft Entra ID authentication
218
+
219
+
When you create a connection that uses Microsoft Entra ID authentication, you must assign roles to your developers so they can access the resource.
220
+
221
+
| Resource | Role | Description |
222
+
|----------|------|-------------|
223
+
| Azure AI Search | Contributor | List API-Keys to list indexes from Azure OpenAI Studio. |
224
+
| Azure AI Search | Search Index Data Contributor | Required for indexing scenarios |
225
+
| Azure AI services/OpenAI | Cognitive Services OpenAI Contributor | Call public ingestion API from Azure OpenAI Studio. |
226
+
| Azure AI services/OpenAI | Cognitive Services User | List API-Keys from Azure OpenAI Studio. |
227
+
| Azure AI services/OpenAI | Contributor | Allows for calls to the control plane. |
228
+
229
+
When using Microsoft Entra ID authenticated connections in the chat playground, the services need to authorize each other to access the required resources. The admin performing the configuration needs to have the __Owner__ role on these resources to add role assignments. The following table lists the required role assignments for each resource. The __Assignee__ column refers to the system-assigned managed identity of the listed resource. The __Resource__ column refers to the resource that the assignee needs to access. For example, Azure AI OpenAI has a system-assigned managed identity that needs to be assigned the __Search Index Data Reader__ role for the Azure AI Search resource.
230
+
231
+
| Role | Assignee | Resource | Description |
232
+
|------|----------|----------|-------------|
233
+
| Search Index Data Reader | Azure AI services/OpenAI | Azure AI Search | Inference service queries the data from the index. Only used for inference scenarios. |
234
+
| Search Index Data Contributor | Azure AI services/OpenAI | Azure AI Search | Read-write access to content in indexes. Import, refresh, or query the documents collection of an index. Only used for ingestion and inference scenarios. |
235
+
| Search Service Contributor | Azure AI services/OpenAI | Azure AI Search | Read-write access to object definitions (indexes, aliases, synonym maps, indexers, data sources, and skillsets). Inference service queries the index schema for auto fields mapping. Data ingestion service creates index, data sources, skill set, indexer, and queries the indexer status. |
236
+
| Cognitive Services OpenAI Contributor | Azure AI Search | Azure AI services/OpenAI | Custom skill |
237
+
| Cognitive Services OpenAI User | Azure OpenAI Resource for chat model | Azure OpenAI resource for embedding model | Required only if using two Azure OpenAI resources to communicate. |
238
+
239
+
> [!NOTE]
240
+
> The Cognitive Services OpenAI User role is only required if you are using two Azure OpenAI resources: one for your chat model and one for your embedding model. If this applies, enable Trusted Services AND ensure the Connection for your embedding model Azure OpenAI resource has EntraID enabled.
241
+
217
242
## Scenario: Use an existing Azure OpenAI resource
218
243
219
244
When you create a connection to an existing Azure OpenAI resource, you must also assign roles to your users so they can access the resource. You should assign either the **Cognitive Services OpenAI User** or **Cognitive Services OpenAI Contributor** role, depending on the tasks they need to perform. For information on these roles and the tasks they enable, see [Azure OpenAI roles](/azure/ai-services/openai/how-to/role-based-access-control#azure-openai-roles).
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/connections-add.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,10 @@ Follow these steps to create a new connection that's only available for the curr
52
52
53
53
:::image type="content" source="../media/data-connections/connection-add-browse-azure-ai-search.png" alt-text="Screenshot of the page to select Azure AI Search from a list of other resources." lightbox="../media/data-connections/connection-add-browse-azure-ai-search.png":::
54
54
55
-
1. Browse for and select your Azure AI Search service from the list of available services. Select **Add connection**.
55
+
1. Browse for and select your Azure AI Search service from the list of available services and then select the type of __Authentication__ to use for the resource. Select **Add connection**.
56
+
57
+
> [!TIP]
58
+
> Different connection types support different authentication methods. Using Microsoft Entra ID may require specific Azure role-based access permissions for your developers. For more information, visit [Role-based access control](../concepts/rbac-ai-studio.md#scenario-connections-using-microsoft-entra-id-authentication).
56
59
57
60
:::image type="content" source="../media/data-connections/connection-add-azure-ai-search-connect.png" alt-text="Screenshot of the page to select the Azure AI Search service that you want to connect to." lightbox="../media/data-connections/connection-add-azure-ai-search-connect.png":::
There are a variety of authentication methods for the different connection types. When using Microsoft Entra ID, in addition to creating the connection you might also need to grant Azure role-based access control permissions before the connection can be used. For more information, visit [Role-based access control](../../concepts/rbac-ai-studio.md#scenario-connections-using-microsoft-entra-id-authentication).
37
+
34
38
## Azure OpenAI Service
35
39
36
40
The following example creates an Azure OpenAI Service connection.
@@ -44,14 +48,20 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration
description: Reference documentation for the CLI (v2) AI Search connections YAML schema.
5
5
services: machine-learning
6
-
ms.service: machine-learning
6
+
ms.service: azure-machine-learning
7
7
ms.subservice: core
8
8
ms.custom:
9
9
- build-2024
@@ -32,15 +32,15 @@ ms.reviewer: ambadal
32
32
|`type`| string |**Required.** The connection type. |`azure_ai_search`|`azure_ai_search`|
33
33
|`is_shared`| boolean |`true` if the connection is shared across other projects in the hub; otherwise, `false`. ||`true`|
34
34
|`endpoint`| string |**Required.** The URL of the endpoint. |||
35
-
|`api_key`| string |**Required.**The API key used to authenticate the connection. If not provided, a Microsoft Entra ID (credential-less authentication) connection is created. |||
35
+
|`api_key`| string | The API key used to authenticate the connection. If not provided, a Microsoft Entra ID (credential-less authentication) connection is created. |||
36
36
37
37
## Remarks
38
38
39
39
While the `az ml connection` commands can be used to manage both Azure Machine Learning and Azure AI Studio connections, the Azure AI Search connection is specific to Azure AI Studio.
40
40
41
41
## Examples
42
42
43
-
Visit [this GitHub resource]() for examples. Several are shown here. These examples would be in the form of YAML files and used from the CLI. For example, `az ml connection create -f <file-name>.yaml`.
43
+
These examples would be in the form of YAML files and used from the CLI. For example, `az ml connection create -f <file-name>.yaml`.
description: Reference documentation for the CLI (v2) Azure AI Services connections YAML schema.
5
5
services: machine-learning
6
-
ms.service: machine-learning
6
+
ms.service: azure-machine-learning
7
7
ms.subservice: core
8
8
ms.custom:
9
9
- build-2024
10
10
ms.topic: reference
11
11
12
12
author: Blackmist
13
13
ms.author: larryfr
14
-
ms.date: 05/09/2024
14
+
ms.date: 08/21/2024
15
15
ms.reviewer: ambadal
16
16
---
17
17
@@ -32,7 +32,7 @@ ms.reviewer: ambadal
32
32
|`type`| string |**Required.** The connection type. |`azure_ai_services`|`azure_ai_services`|
33
33
|`is_shared`| boolean |`true` if the connection is shared across other projects in the hub; otherwise, `false`. ||`true`|
34
34
|`endpoint`| string |**Required.** The URL of the endpoint. |||
35
-
|`api_key`| string |**Required.**The API key used to authenticate the connection. If not provided, a Microsoft Entra ID (credential-less authentication) connection is created. |||
35
+
|`api_key`| string | The API key used to authenticate the connection. If not provided, a Microsoft Entra ID (credential-less authentication) connection is created. |||
36
36
|`ai_services_resource_id`| string |**Required.** The fully qualified Azure resource ID of the Azure AI Services resource. |||
37
37
38
38
@@ -49,7 +49,7 @@ While the `az ml connection` commands can be used to manage both Azure Machine L
49
49
50
50
## Examples
51
51
52
-
Visit [this GitHub resource]() for examples. Several are shown here. These examples would be in the form of YAML files and used from the CLI. For example, `az ml connection create -f <file-name>.yaml`.
52
+
These examples would be in the form of YAML files and used from the CLI. For example, `az ml connection create -f <file-name>.yaml`.
description: Reference documentation for the CLI (v2) OpenAI connections YAML schema.
5
5
services: machine-learning
6
-
ms.service: machine-learning
6
+
ms.service: azure-machine-learning
7
7
ms.subservice: core
8
8
ms.custom:
9
9
- build-2024
@@ -41,7 +41,7 @@ While the `az ml connection` commands can be used to manage both Azure Machine L
41
41
42
42
## Examples
43
43
44
-
Visit [this GitHub resource]() for examples. Several are shown here. These examples would be in the form of YAML files and used from the CLI. For example, `az ml connection create -f <file-name>.yaml`.
44
+
These examples would be in the form of YAML files and used from the CLI. For example, `az ml connection create -f <file-name>.yaml`.
0 commit comments