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-services/agents/how-to/tools/bing-grounding.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ Developers and end users don't have access to raw content returned from Groundin
44
44
1. Create a Grounding with Bing Search resource. You need to have `owner` or `contributor` role in your subscription or resource group to create it.
45
45
46
46
1. You can create one in the [Azure portal](https://portal.azure.com/#create/Microsoft.BingGroundingSearch), and select the different fields in the creation form. Make sure you create this Grounding with Bing Search resource in the same resource group as your Azure AI Agent, AI Project, and other resources.
47
+
48
+
:::image type="content" source="../../media/tools/bing/resource-selection.png" alt-text="A screenshot of the Bing resource selection in the Azure portal." lightbox="../../media/tools/bing/resource-selection.png":::
47
49
48
50
1. You can also create one through code-first experience. If so, you need to manually [register](/azure/azure-resource-manager/management/resource-providers-and-types#register-resource-provider) Bing Search as an Azure resource provider. You must have permission to perform the `/register/action` operation for the resource provider. The permission is included in the **Contributor** and **Owner** roles.
Copy file name to clipboardExpand all lines: articles/ai-services/authentication.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,22 @@
2
2
title: Authentication in Azure AI services
3
3
titleSuffix: Azure AI services
4
4
description: "There are three ways to authenticate a request to an Azure AI services resource: a resource key, a bearer token, or a multi-service subscription. In this article, you'll learn about each method, and how to make a request."
5
-
author: mgreenegit
5
+
author: eric-urban
6
6
manager: nitinme
7
7
ms.service: azure-ai-services
8
8
ms.custom: devx-track-azurepowershell
9
9
ms.topic: how-to
10
-
ms.date: 8/1/2024
11
-
ms.author: migreene
10
+
ms.date: 2/7/2025
11
+
ms.author: eur
12
12
---
13
13
14
14
# Authenticate requests to Azure AI services
15
15
16
16
Each request to an Azure AI service must include an authentication header. This header passes along a resource key or authentication token, which is used to validate your subscription for a service or group of services. In this article, you'll learn about three ways to authenticate a request and the requirements for each.
17
17
18
-
* Authenticate with a [single-service](#authenticate-with-a-single-service-resource-key) or [multi-service](#authenticate-with-a-multi-service-resource-key) resource key
19
-
* Authenticate with a [token](#authenticate-with-an-access-token)
20
-
* Authenticate with [Microsoft Entra ID](#authenticate-with-azure-active-directory)
18
+
* Authenticate with a [single-service](#authenticate-with-a-single-service-resource-key) or [multi-service](#authenticate-with-a-multi-service-resource-key) resource key.
19
+
* Authenticate with a [token](#authenticate-with-an-access-token).
20
+
* Authenticate with [Microsoft Entra ID](#authenticate-with-azure-active-directory).
21
21
22
22
## Prerequisites
23
23
@@ -106,7 +106,7 @@ Some Azure AI services accept, and in some cases require, an access token. Curre
106
106
* Speech Services: Speech to text API
107
107
* Speech Services: Text to speech API
108
108
109
-
>[!WARNING]
109
+
>[!WARNING]
110
110
> The services that support access tokens may change over time, please check the API reference for a service before using this authentication method.
111
111
112
112
Both single service and multi-service resource keys can be exchanged for authentication tokens. Authentication tokens are valid for 10 minutes. They're stored in JSON Web Token (JWT) format and can be queried programmatically using the [JWT libraries](https://jwt.io/libraries).
@@ -176,13 +176,13 @@ The first step is to create a custom subdomain. If you want to use an existing A
2. Next, [create an Azure AI services resource](/powershell/module/az.cognitiveservices/new-azcognitiveservicesaccount) with a custom subdomain. The subdomain name needs to be globally unique and cannot include special characters, such as: ".", "!", ",".
179
+
1. Next, [create an Azure AI services resource](/powershell/module/az.cognitiveservices/new-azcognitiveservicesaccount) with a custom subdomain. The subdomain name needs to be globally unique and cannot include special characters, such as: ".", "!", ",".
@@ -211,7 +211,7 @@ Now that you have a custom subdomain associated with your resource, you're going
211
211
> [!NOTE]
212
212
> If you register an application in the Azure portal, this step is completed for you.
213
213
214
-
3. The last step is to [assign the "Cognitive Services User" role](/powershell/module/az.Resources/New-azRoleAssignment) to the service principal (scoped to the resource). By assigning a role, you're granting service principal access to this resource. You can grant the same service principal access to multiple resources in your subscription.
214
+
1. The last step is to [assign the "Cognitive Services User" role](/powershell/module/az.Resources/New-azRoleAssignment) to the service principal (scoped to the resource). By assigning a role, you're granting service principal access to this resource. You can grant the same service principal access to multiple resources in your subscription.
215
215
216
216
> [!NOTE]
217
217
> The ObjectId of the service principal is used, not the ObjectId for the application.
@@ -231,7 +231,7 @@ In this sample, a password is used to authenticate the service principal. The to
231
231
$context.Tenant.Id
232
232
```
233
233
234
-
2. Get a token:
234
+
1. Get a token:
235
235
```powershell-interactive
236
236
$tenantId = $context.Tenant.Id
237
237
$clientId = $app.ApplicationId
@@ -253,7 +253,7 @@ In this sample, a password is used to authenticate the service principal. The to
253
253
> [!NOTE]
254
254
> Anytime you use passwords in a script, the most secure option is to use the PowerShell Secrets Management module and integrate with a solution such as Azure Key Vault.
@@ -284,7 +284,7 @@ You can [use Azure Key Vault](./use-key-vault.md) to securely develop Azure AI s
284
284
285
285
Authentication is done via Microsoft Entra ID. Authorization may be done via Azure role-based access control (Azure RBAC) or Key Vault access policy. Azure RBAC can be used for both management of the vaults and access data stored in a vault, while key vault access policy can only be used when attempting to access data stored in a vault.
286
286
287
-
## See also
287
+
## Related content
288
288
289
289
*[What are Azure AI services?](./what-are-ai-services.md)
290
290
*[Azure AI services pricing](https://azure.microsoft.com/pricing/details/cognitive-services/)
Copy file name to clipboardExpand all lines: articles/ai-services/content-safety/quickstart-groundedness.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ This guide shows you how to use the groundedness detection API. This feature aut
26
26
* (Optional) If you want to use the _reasoning_ feature, create an Azure OpenAI Service resource with a GPT model deployed.
27
27
*[cURL](https://curl.haxx.se/) or [Python](https://www.python.org/downloads/) installed.
28
28
29
+
## Authentication
30
+
For enhanced security, you need to use Managed Identity (MI) to manage access to your resources, for more details, please refer to [Security](./overview.md#security).
29
31
30
32
## Check groundedness without reasoning
31
33
@@ -171,7 +173,7 @@ The Groundedness detection API provides the option to include _reasoning_ in the
171
173
### Connect your own GPT deployment
172
174
173
175
> [!TIP]
174
-
> We only support **Azure OpenAI GPT4o (0513, 0806 version)** resources and do not support other GPT types. You have the flexibility to deploy your Azure OpenAI GPT4o (0513, 0806 version) resources in any region. However, to minimize potential latency and avoid any geographical boundary data privacy and risk concerns, we recommend situating them in the same region as your content safety resources. For comprehensive details on data privacy, refer to the [Data, privacy and security guidelines for Azure OpenAI Service](/legal/cognitive-services/openai/data-privacy) and [Data, privacy, and security for Azure AI Content Safety](/legal/cognitive-services/content-safety/data-privacy?context=%2Fazure%2Fai-services%2Fcontent-safety%2Fcontext%2Fcontext).
176
+
> We only support Azure OpenAI GPT4o (0513, 0806 version) resources and do not support other GPT types. You have the flexibility to deploy your Azure OpenAI GPT4o (0513, 0806 version) resources in any region. However, to minimize potential latency and avoid any geographical boundary data privacy and risk concerns, we recommend situating them in the same region as your content safety resources. For comprehensive details on data privacy, refer to the [Data, privacy and security guidelines for Azure OpenAI Service](/legal/cognitive-services/openai/data-privacy) and [Data, privacy, and security for Azure AI Content Safety](/legal/cognitive-services/content-safety/data-privacy?context=%2Fazure%2Fai-services%2Fcontent-safety%2Fcontext%2Fcontext).
175
177
176
178
In order to use your Azure OpenAI GPT4o (0513, 0806 version) resource to enable the reasoning feature, use Managed Identity to allow your Content Safety resource to access the Azure OpenAI resource:
Copy file name to clipboardExpand all lines: articles/ai-services/create-account-resource-manager-template.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: eric-urban
6
6
manager: nitinme
7
7
ms.service: azure-ai-services
8
8
ms.topic: quickstart
9
-
ms.date: 8/1/2024
9
+
ms.date: 2/7/2025
10
10
ms.author: eur
11
11
ms.custom:
12
12
- subject-armqs
@@ -35,7 +35,7 @@ The template that you use in this quickstart is from [Azure Quickstart Templates
35
35
36
36
One Azure resource is defined in the Bicep file. The `kind` field in the Bicep file defines the type of resource.
37
37
38
-
As needed, change the `sku` parameter value to the [pricing](https://azure.microsoft.com/pricing/details/cognitive-services/) instance you want. The `sku` depends on the resource `kind` that you use. For example, use `TextAnalytics` for the Azure AI Language service. The `TextAnalytics` kind uses `S` instead of `S0` for the `sku` value.
38
+
As needed, change the `sku` parameter value to the [pricing](https://azure.microsoft.com/pricing/details/cognitive-services/) instance you want. The `sku` depends on the resource `kind` that you use. For example, use `AIServices` for the Azure AI Language service.
0 commit comments