Skip to content

Commit d9b1ada

Browse files
committed
connections security and terminology
1 parent cd497e8 commit d9b1ada

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.custom:
88
- ignite-2023
99
- build-2024
1010
ms.topic: conceptual
11-
ms.date: 5/21/2024
11+
ms.date: 9/12/2024
1212
ms.reviewer: deeikele
1313
ms.author: larryfr
1414
author: Blackmist
@@ -220,20 +220,20 @@ When you create a connection that uses Microsoft Entra ID authentication, you mu
220220

221221
| Resource connection | Role | Description |
222222
|----------|------|-------------|
223-
| Azure AI Search | Contributor | List API-Keys to list indexes from Azure OpenAI Studio. |
223+
| Azure AI Search | Contributor | List API-Keys to list indexes from Azure AI Studio. |
224224
| Azure AI Search | Search Index Data Contributor | Required for indexing scenarios |
225-
| Azure AI services/Azure 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. |
225+
| Azure AI services / Azure OpenAI | Cognitive Services OpenAI Contributor | Call public ingestion API from Azure AI Studio. |
226+
| Azure AI services / Azure OpenAI | Cognitive Services User | List API-Keys from Azure AI Studio. |
227+
| Azure AI services / Azure OpenAI | Contributor | Allows for calls to the control plane. |
228228

229229
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 OpenAI has a system-assigned managed identity that needs to be assigned the __Search Index Data Reader__ role for the Azure AI Search resource.
230230

231231
| Role | Assignee | Resource | Description |
232232
|------|----------|----------|-------------|
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 |
233+
| Search Index Data Reader | Azure AI services / Azure 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 / Azure 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 / Azure 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 / Azure OpenAI | Custom skill |
237237
| 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. |
238238

239239
> [!NOTE]
@@ -316,8 +316,8 @@ The following example defines a role for a developer using [Azure OpenAI Assista
316316
{
317317
"id": "",
318318
"properties": {
319-
"roleName": "CognitiveServices OpenAI Assistants API Developer",
320-
"description": "Custom role to work with AOAI Assistants API",
319+
"roleName": "Azure OpenAI Assistants API Developer",
320+
"description": "Custom role to work with Azure OpenAI Assistants API",
321321
"assignableScopes": [
322322
"<your-scope>"
323323
],

articles/ai-studio/how-to/develop/connections-add-sdk.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
title: How to add a new connection in AI Studio using the Azure Machine Learning SDK
33
titleSuffix: Azure AI Studio
44
description: This article provides instructions on how to add connections to other resources using the Azure Machine Learning SDK.
5-
manager: nitinme
5+
manager: scottpolly
66
ms.service: azure-ai-studio
77
ms.custom:
88
- build-2024
99
ms.topic: how-to
10-
ms.date: 08/29/2024
10+
ms.date: 9/12/2024
1111
ms.reviewer: dantaylo
1212
ms.author: larryfr
1313
author: Blackmist
@@ -35,6 +35,12 @@ Connections are a way to authenticate and consume both Microsoft and other resou
3535

3636
There are various authentication methods for the different connection types. When you use 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).
3737

38+
> [!IMPORTANT]
39+
> We recommend Microsoft Entra ID authentication with [managed identities for Azure resources](/azure/active-directory/managed-identities-azure-resources/overview) to avoid storing credentials with your applications that run in the cloud.
40+
>
41+
> If you use an API key, store it securely somewhere else, such as in [Azure Key Vault](/azure/key-vault/general/overview). Don't include the API key directly in your code, and never post it publicly.
42+
43+
3844
## Azure OpenAI Service
3945

4046
The following example creates an Azure OpenAI Service connection.
@@ -54,7 +60,7 @@ resource_id= "Azure-resource-id"
5460

5561
# Microsoft Entra ID
5662
credentials = None
57-
# Uncomment the following to use API key instead
63+
# Uncomment the following if you need to use API key instead
5864
# api_key= "my-key"
5965
# credentials = ApiKeyConfiguration(key=api_key)
6066

@@ -83,7 +89,7 @@ resource_id=""
8389

8490
# Microsoft Entra ID
8591
credentials = None
86-
# Uncomment the following to use API key instead
92+
# Uncomment the following if you need to use API key instead
8793
# api_key= "my-key"
8894
# credentials = ApiKeyConfiguration(key=api_key)
8995

@@ -109,7 +115,7 @@ target = "https://XXXXXXXXX.search.windows.net"
109115

110116
# Microsoft Entra ID
111117
credentials = None
112-
# Uncomment the following to use API key instead
118+
# Uncomment the following if you need to use API key instead
113119
# api_key= "my-key"
114120
# credentials = ApiKeyConfiguration(key=api_key)
115121

0 commit comments

Comments
 (0)