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,6 +1,6 @@
1
1
---
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
2
+
title: Integrate an Azure AI multi-service resource with Service Connector
3
+
description: In this document, learn how to integrate an Azure AI multi-service resource into your application with Service Connector
4
4
author: wchigit
5
5
ms.author: wchi
6
6
ms.service: service-connector
@@ -9,13 +9,13 @@ ms.date: 06/14/2024
9
9
ms.collection: ce-skilling-ai-copilot
10
10
---
11
11
12
-
# Integrate a multi-service resource for Azure AI services with Service Connector
12
+
# Integrate an Azure AI multi-service resource with Service Connector
13
13
14
-
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
+
This page shows supported authentication methods and clients, and shows sample code you can use to connect an Azure AI multi-service resource to other cloud services using Service Connector. You might still be able to connect to an Azure AI multi-service resource using other methods. This page also shows default environment variable names and values you get when you create the service connection.
15
15
16
16
## Supported compute services
17
17
18
-
Service Connector can be used to connect the following compute services to a multi-service resource for Azure AI services:
18
+
Service Connector can be used to connect the following compute services to an Azure AI multi-service resource:
19
19
20
20
- Azure App Service
21
21
- Azure Functions
@@ -24,7 +24,7 @@ Service Connector can be used to connect the following compute services to a mul
24
24
25
25
## Supported authentication types and client types
26
26
27
-
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
+
The table below shows which combinations of authentication methods and clients are supported for connecting your compute service to an Azure AI multi-service resource using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
28
28
29
29
30
30
| Client type | System-assigned managed identity | User-assigned managed identity | Secret/connection string | Service principal |
@@ -35,11 +35,11 @@ The table below shows which combinations of authentication methods and clients a
35
35
| Python | Yes | Yes | Yes | Yes |
36
36
| None | Yes | Yes | Yes | Yes |
37
37
38
-
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
+
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 an Azure AI multi-service resource using Service Connector.
39
39
40
40
## Default environment variable names or application properties and sample code
41
41
42
-
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
+
Use the connection details below to connect compute services to an Azure AI multi-service resource. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
43
43
44
44
### System-assigned managed identity
45
45
@@ -48,8 +48,8 @@ Use the connection details below to connect compute services to a multi-service
48
48
| AZURE_COGNITIVESERVICES_ENDPOINT | Azure Cognitive Services token provider service |`https://<cognitive-service-name>.cognitiveservices.azure.com/`|
49
49
50
50
#### Sample code
51
-
Refer to the steps and code below to connect to a multi-service resource for Azure AI services using a system-assigned managed identity.
52
-
[!INCLUDE [code sample for a multi-service resource for Azure AI services](./includes/code-cognitive-me-id.md)]
51
+
Refer to the steps and code below to connect to an Azure AI multi-service resource using a system-assigned managed identity.
52
+
[!INCLUDE [code sample for an Azure AI multi-service resource](./includes/code-cognitive-me-id.md)]
53
53
54
54
### User-assigned managed identity
55
55
@@ -59,20 +59,20 @@ Refer to the steps and code below to connect to a multi-service resource for Azu
59
59
| AZURE_COGNITIVESERVICES_CLIENTID | Your client ID |`<client-ID>`|
60
60
61
61
#### Sample code
62
-
Refer to the steps and code below to connect to a multi-service resource for Azure AI services using a user-assigned managed identity.
63
-
[!INCLUDE [code sample for a multi-service resource for Azure AI services](./includes/code-cognitive-me-id.md)]
62
+
Refer to the steps and code below to connect to an Azure AI multi-service resource using a user-assigned managed identity.
63
+
[!INCLUDE [code sample for an Azure AI multi-service resource](./includes/code-cognitive-me-id.md)]
64
64
65
65
### Connection string
66
66
67
67
> [!div class="mx-tdBreakAll"]
68
68
> | Default environment variable name | Description | Sample value |
> | AZURE_COGNITIVESERVICES_ENDPOINT |endpoint of a multi-service resource for Azure AI services|`https://<cognitive-service-name>.cognitiveservices.azure.com/`|
71
-
> | AZURE_COGNITIVESERVICES_KEY | API key of a multi-service resource for Azure AI services|`<api-key>`|
Copy file name to clipboardExpand all lines: articles/service-connector/includes/code-cognitive-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 Multi-service Cognitive 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.
9
+
You can use the Azure client library to access various cognitive APIs that an Azure AI multi-service resource supports. 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,7 +15,7 @@ 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 Multi-service Cognitive 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 Azure Identity library and get the Azure AI multi-service resource 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.
19
19
20
20
```csharp
21
21
using Azure.AI.TextAnalytics;
@@ -60,7 +60,7 @@ You can use the Azure client library to access various cognitive APIs that Azure
60
60
<version>1.11.4</version>
61
61
</dependency>
62
62
```
63
-
1. Authenticate using `azure-identity` and get the Azure Multi-service Cognitive 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.
63
+
1. Authenticate using `azure-identity` and get the Azure AI multi-service resource 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
66
// Uncomment the following lines corresponding to the authentication type you want to use.
@@ -94,7 +94,7 @@ You can use the Azure client library to access various cognitive APIs that Azure
94
94
pip install azure-ai-textanalytics==5.1.0
95
95
pip install azure-identity
96
96
```
97
-
1. Authenticate using `azure-identity` and get the Azure Multi-service Cognitive 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.
97
+
1. Authenticate using `azure-identity` and get the Azure AI multi-service resource 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.
98
98
```python
99
99
import os
100
100
from azure.ai.textanalytics import TextAnalyticsClient
@@ -127,7 +127,7 @@ You can use the Azure client library to access various cognitive APIs that Azure
1. Authenticate using `@azure/identity` and get the Azure Multi-service Cognitive 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.
130
+
1. Authenticate using `@azure/identity` and get the Azure AI multi-service resource 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.
131
131
132
132
```javascript
133
133
import { DefaultAzureCredential,ClientSecretCredential } from "@azure/identity";
@@ -154,4 +154,4 @@ You can use the Azure client library to access various cognitive APIs that Azure
154
154
```
155
155
156
156
### [Other](#tab/none)
157
-
For other languages, you can use the connection information that Service Connector sets to the environment variables to connect to Azure Multi-service Cognitive Services. For environment variable details, see [Integrate Azure Multi-service Cognitive Services with Service Connector](../how-to-integrate-cognitive-services.md).
157
+
For other languages, you can use the connection information that Service Connector sets to the environment variables to connect to an Azure AI multi-service resource. For environment variable details, see [Integrate an Azure AI multi-service resource with Service Connector](../how-to-integrate-cognitive-services.md).
Copy file name to clipboardExpand all lines: articles/service-connector/includes/code-cognitive-secret.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: 06/12/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 Multi-service Cognitive 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.
9
+
You can use the Azure client library to access various cognitive APIs that an Azure AI multi-service resource supports. 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.
10
10
11
11
### [.NET](#tab/dotnet)
12
12
@@ -15,7 +15,7 @@ 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.Core --version 1.40.0
17
17
```
18
-
1. Get the Azure Multi-service Cognitive Services endpoint and key from the environment variables added by Service Connector.
18
+
1. Get the Azure AI multi-service resource endpoint and key from the environment variables added by Service Connector.
19
19
20
20
```csharp
21
21
using Azure.AI.TextAnalytics;
@@ -43,7 +43,7 @@ You can use the Azure client library to access various cognitive APIs that Azure
43
43
<version>5.1.12</version>
44
44
</dependency>
45
45
```
46
-
1. Get the Azure Multi-service Cognitive Services endpoint and key from the environment variables added by Service Connector.
46
+
1. Get the Azure AI multi-service resource endpoint and key from the environment variables added by Service Connector.
@@ -91,4 +91,4 @@ You can use the Azure client library to access various cognitive APIs that Azure
91
91
```
92
92
93
93
### [Other](#tab/none)
94
-
For other languages, you can use the connection information that Service Connector sets to the environment variables to connect to Azure Multi-service Cognitive Services. For environment variable details, see [Integrate Azure Multi-service Cognitive Services with Service Connector](../how-to-integrate-cognitive-services.md).
94
+
For other languages, you can use the connection information that Service Connector sets to the environment variables to connect to an Azure AI multi-service resource. For environment variable details, see [Integrate an Azure AI multi-service resource with Service Connector](../how-to-integrate-cognitive-services.md).
0 commit comments