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/service-connector/how-to-integrate-cognitive-services.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
---
2
-
title: Integrate Azure Multi-service Cognitive Services with Service Connector
3
-
description: In this document, learn how to integrate Azure Multi-service Cognitive Services into your application with Service Connector
2
+
title: Integrate a multi-service resource for Azure AI services with Service Connector
3
+
description: In this document, learn how to integrate a multi-service resource for Azure AI services into your application with Service Connector
4
4
author: wchigit
5
5
ms.author: wchi
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
8
ms.date: 06/14/2024
9
9
---
10
10
11
-
# Integrate Azure Multi-service Cognitive Services with Service Connector
11
+
# Integrate a multi-service resource for Azure AI services with Service Connector
12
12
13
-
This page shows supported authentication methods and clients, and shows sample code you can use to connect Azure Multi-service Cognitive Services to other cloud services using Service Connector. You might still be able to connect to Azure Multi-service Cognitive Services using other methods. This page also shows default environment variable names and values you get when you create the service connection.
13
+
This page shows supported authentication methods and clients, and shows sample code you can use to connect a multi-service resource for Azure AI services to other cloud services using Service Connector. You might still be able to connect to a multi-service resource for Azure AI services using other methods. This page also shows default environment variable names and values you get when you create the service connection.
14
14
15
15
## Supported compute services
16
16
17
-
Service Connector can be used to connect the following compute services to Azure Multi-service Cognitive Services:
17
+
Service Connector can be used to connect the following compute services to a multi-service resource for Azure AI services:
18
18
19
19
- Azure App Service
20
20
- Azure Functions
@@ -23,7 +23,7 @@ Service Connector can be used to connect the following compute services to Azure
23
23
24
24
## Supported authentication types and client types
25
25
26
-
The table below shows which combinations of authentication methods and clients are supported for connecting your compute service to Azure Multi-service Cognitive Services using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
26
+
The table below shows which combinations of authentication methods and clients are supported for connecting your compute service to a multi-service resource for Azure AI services using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
27
27
28
28
29
29
| Client type | System-assigned managed identity | User-assigned managed identity | Secret/connection string | Service principal |
@@ -34,11 +34,11 @@ The table below shows which combinations of authentication methods and clients a
34
34
| Python | Yes | Yes | Yes | Yes |
35
35
| None | Yes | Yes | Yes | Yes |
36
36
37
-
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to Azure Multi-service Cognitive Services using Service Connector.
37
+
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to a multi-service resource for Azure AI services using Service Connector.
38
38
39
39
## Default environment variable names or application properties and sample code
40
40
41
-
Use the connection details below to connect compute services to Azure Multi-service Cognitive Services. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
41
+
Use the connection details below to connect compute services to a multi-service resource for Azure AI services. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
42
42
43
43
### System-assigned managed identity
44
44
@@ -47,8 +47,8 @@ Use the connection details below to connect compute services to Azure Multi-serv
47
47
| AZURE_COGNITIVESERVICES_ENDPOINT | Azure Cognitive Services token provider service |`https://<cognitive-service-name>.cognitiveservices.azure.com/`|
48
48
49
49
#### Sample code
50
-
Refer to the steps and code below to connect to Azure Multi-service Cognitive Services using a system-assigned managed identity.
51
-
[!INCLUDE [code sample for app config](./includes/code-cognitive-me-id.md)]
50
+
Refer to the steps and code below to connect to a multi-service resource for Azure AI services using a system-assigned managed identity.
51
+
[!INCLUDE [code sample for a multi-service resource for Azure AI services](./includes/code-cognitive-me-id.md)]
52
52
53
53
### User-assigned managed identity
54
54
@@ -58,20 +58,20 @@ Refer to the steps and code below to connect to Azure Multi-service Cognitive Se
58
58
| AZURE_COGNITIVESERVICES_CLIENTID | Your client ID |`<client-ID>`|
59
59
60
60
#### Sample code
61
-
Refer to the steps and code below to connect to Azure Multi-service Cognitive Services using a user-assigned managed identity.
62
-
[!INCLUDE [code sample for Azure Multi-service Cognitive Services](./includes/code-cognitive-me-id.md)]
61
+
Refer to the steps and code below to connect to a multi-service resource for Azure AI services using a user-assigned managed identity.
62
+
[!INCLUDE [code sample for a multi-service resource for Azure AI services](./includes/code-cognitive-me-id.md)]
63
63
64
64
### Connection string
65
65
66
66
> [!div class="mx-tdBreakAll"]
67
67
> | Default environment variable name | Description | Sample value |
> | AZURE_COGNITIVESERVICES_KEY |Azure Multi-service Cognitive Services API key|`<api-key>`|
69
+
> | AZURE_COGNITIVESERVICES_ENDPOINT |endpoint of a multi-service resource for Azure AI services|`https://<cognitive-service-name>.cognitiveservices.azure.com/`|
70
+
> | AZURE_COGNITIVESERVICES_KEY |API key of a multi-service resource for Azure AI services|`<api-key>`|
71
71
72
72
#### Sample Code
73
-
Refer to the steps and code below to connect to Azure Multi-service Cognitive Services using a connection string.
74
-
[!INCLUDE [code sample for Azure Multi-service Cognitive Services](./includes/code-cognitive-secret.md)]
73
+
Refer to the steps and code below to connect to a multi-service resource for Azure AI services using a connection string.
74
+
[!INCLUDE [code sample for a multi-service resource for Azure AI services](./includes/code-cognitive-secret.md)]
75
75
76
76
77
77
### Service principal
@@ -84,8 +84,8 @@ Refer to the steps and code below to connect to Azure Multi-service Cognitive Se
84
84
| AZURE_COGNITIVESERVICES_TENANTID | Your tenant ID |`<tenant-ID>`|
85
85
86
86
#### Sample code
87
-
Refer to the steps and code below to connect to Azure Multi-service Cognitive Services using a service principaL.
88
-
[!INCLUDE [code sample for Azure Multi-service Cognitive Services](./includes/code-cognitive-me-id.md)]
87
+
Refer to the steps and code below to connect to a multi-service resource for Azure AI services using a service principaL.
88
+
[!INCLUDE [code sample for a multi-service resource for Azure AI services](./includes/code-cognitive-me-id.md)]
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-openai.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
---
2
-
title: Integrate Azure OpenAI with Service Connector
3
-
description: In this document, learn how to integrate Azure OpenAI into your application with Service Connector
2
+
title: Integrate Azure OpenAI Service with Service Connector
3
+
description: In this document, learn how to integrate Azure OpenAI Service into your application with Service Connector
4
4
author: wchigit
5
5
ms.author: wchi
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
8
ms.date: 06/14/2024
9
9
---
10
10
11
-
# Integrate Azure OpenAI with Service Connector
11
+
# Integrate Azure OpenAI Service with Service Connector
12
12
13
-
This page shows supported authentication methods and clients, and shows sample code you can use to connect Azure OpenAI to other cloud services using Service Connector. You might still be able to connect to Azure OpenAI using other methods. This page also shows default environment variable names and values you get when you create the service connection.
13
+
This page shows supported authentication methods and clients, and shows sample code you can use to connect Azure OpenAI Service to other cloud services using Service Connector. You might still be able to connect to Azure OpenAI Service using other methods. This page also shows default environment variable names and values you get when you create the service connection.
14
14
15
15
## Supported compute services
16
16
17
-
Service Connector can be used to connect the following compute services to Azure OpenAI:
17
+
Service Connector can be used to connect the following compute services to Azure OpenAI Service:
18
18
19
19
- Azure App Service
20
20
- Azure Functions
@@ -23,7 +23,7 @@ Service Connector can be used to connect the following compute services to Azure
23
23
24
24
## Supported authentication types and client types
25
25
26
-
The table below shows which combinations of authentication methods and clients are supported for connecting your compute service to Azure OpenAI using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
26
+
The table below shows which combinations of authentication methods and clients are supported for connecting your compute service to Azure OpenAI Service using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
27
27
28
28
29
29
| Client type | System-assigned managed identity | User-assigned managed identity | Secret/connection string | Service principal |
@@ -34,58 +34,58 @@ The table below shows which combinations of authentication methods and clients a
34
34
| Python | Yes | Yes | Yes | Yes |
35
35
| None | Yes | Yes | Yes | Yes |
36
36
37
-
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to Azure OpenAI using Service Connector.
37
+
This table indicates that all combinations of client types and authentication methods in the table are supported. All client types can use any of the authentication methods to connect to Azure OpenAI Service using Service Connector.
38
38
39
39
## Default environment variable names or application properties and sample code
40
40
41
-
Use the connection details below to connect compute services to Azure OpenAI. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
41
+
Use the connection details below to connect compute services to Azure OpenAI Service. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
42
42
43
43
### System-assigned managed identity
44
44
45
45
| Default environment variable name | Description | Sample value |
Copy file name to clipboardExpand all lines: articles/service-connector/includes/code-aiservices-me-id.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.date: 10/20/2023
6
6
ms.author: wchi
7
7
---
8
8
9
-
You can use the Azure client library to access various cognitive APIs that Azure AI Services support. We use the language service as an example in this sample. Refer to [Authenticate requests to Azure AI services](/azure/ai-services/authentication#authenticate-with-azure-active-directory) to call the cognitive APIs directly.
9
+
You can use the Azure client library to access various cognitive APIs that Azure AI Services support. We use Azure AI Text Analytics as an example in this sample. Refer to [Authenticate requests to Azure AI services](/azure/ai-services/authentication#authenticate-with-azure-active-directory) to call the cognitive APIs directly.
10
10
11
11
### [.NET](#tab/dotnet)
12
12
@@ -15,15 +15,15 @@ You can use the Azure client library to access various cognitive APIs that Azure
15
15
dotnet add package Azure.AI.TextAnalytics
16
16
dotnet add package Azure.Identity
17
17
```
18
-
1. Authenticate using Azure Identity library and get the Azure AI Services endpoint from the environment variables added by Service Connector. When using the code below, uncomment the part of the code snippet for the authentication type you want to use.
18
+
1. Authenticate using the Azure Identity library and get the Azure AI Services endpoint from the environment variables added by Service Connector. When using the code below, uncomment the part of the code snippet for the authentication type you want to use.
// Uncomment the following lines according to the authentication type.
26
+
// Uncomment the following lines corresponding to the authentication type you want to use.
27
27
// system-assigned managed identity
28
28
// var credential = new DefaultAzureCredential();
29
29
@@ -63,7 +63,7 @@ You can use the Azure client library to access various cognitive APIs that Azure
63
63
1. Authenticate using `azure-identity` and get the Azure AI Services endpoint from the environment variables added by Service Connector. When using the code below, uncomment the part of the code snippet for the authentication type you want to use.
64
64
65
65
```java
66
-
// Uncomment the following lines according to the authentication type.
66
+
// Uncomment the following lines corresponding to the authentication type you want to use.
67
67
// for system-managed identity
68
68
// DefaultAzureCredential credential = new DefaultAzureCredentialBuilder().build();
69
69
@@ -100,7 +100,7 @@ You can use the Azure client library to access various cognitive APIs that Azure
100
100
from azure.ai.textanalytics import TextAnalyticsClient
101
101
from azure.identity import ManagedIdentityCredential, ClientSecretCredential
102
102
103
-
# Uncomment the following lines according to the authentication type.
103
+
# Uncomment the following lines corresponding to the authentication type you want to use.
104
104
# system-assigned managed identity
105
105
# cred = ManagedIdentityCredential()
106
106
@@ -133,7 +133,7 @@ You can use the Azure client library to access various cognitive APIs that Azure
133
133
import { DefaultAzureCredential,ClientSecretCredential } from "@azure/identity";
Copy file name to clipboardExpand all lines: articles/service-connector/includes/code-aiservices-secret.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.date: 06/19/2024
6
6
ms.author: wchi
7
7
---
8
8
9
-
You can use the Azure client library to access various cognitive APIs that Azure AI Services support. We use the language service as an example in this sample. Refer to [Authenticate requests to Azure AI services](/azure/ai-services/authentication#authenticate-with-a-multi-service-resource-key) to call the cognitive APIs directly.
9
+
You can use the Azure client library to access various cognitive APIs that Azure AI Services support. We use Azure AI Text Analytics as an example in this sample. Refer to [Authenticate requests to Azure AI services](/azure/ai-services/authentication#authenticate-with-a-multi-service-resource-key) to call the cognitive APIs directly.
0 commit comments