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/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/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.
@@ -37,7 +37,8 @@ The multi-service resource enables access to the following Azure AI services wit
37
37
38
38
| Service | Description | Kind (via API) |
39
39
| --- | --- | --- |
40
-
|[Azure AI Model Inference](../ai-foundry/model-inference/index.yml)| Performs model inference for flagship models in the Azure AI model catalog. |`AIServices`|
40
+
|[Azure AI Agent Service](./agents/index.yml)| Combine the power of generative AI models with tools that allow agents to access and interact with real-world data sources. |`AIServices`|
41
+
|[Azure AI Model Inference](../ai-foundry/model-inference/index.yml)| Performs model inference for flagship models in the Azure AI model catalog. |`AIServices`|
41
42
|[Azure OpenAI](./openai/index.yml)| Perform a wide variety of natural language tasks. |`AIServices`<br/>`OpenAI`|
42
43
|[Content Safety](./content-safety/index.yml)| An AI service that detects unwanted contents. |`AIServices`<br/>`ContentSafety`|
43
44
|[Custom Vision](./custom-vision-service/index.yml)| Customize image recognition for your business. |`CustomVision.Prediction` (Prediction only)<br/>`CustomVision.Training` (Training only) |
Copy file name to clipboardExpand all lines: articles/ai-services/speech-service/how-to-audio-content-creation.md
+15-16Lines changed: 15 additions & 16 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-speech
8
8
ms.topic: how-to
9
-
ms.date: 9/9/2024
9
+
ms.date: 2/7/2025
10
10
ms.author: eur
11
11
---
12
12
@@ -19,15 +19,13 @@ Build highly natural audio content for various scenarios, such as audiobooks, ne
19
19
The tool is based on [Speech Synthesis Markup Language (SSML)](speech-synthesis-markup.md). It allows you to adjust text to speech output attributes in real-time or batch synthesis, such as voice characters, voice styles, speaking speed, pronunciation, and prosody.
20
20
21
21
- No-code approach: You can use the Audio Content Creation tool for text to speech synthesis without writing any code. The output audio might be the final deliverable that you want. For example, you can use the output audio for a podcast or a video narration.
22
-
- Developer-friendly: You can listen to the output audio and adjust the SSML to improve speech synthesis. Then you can use the [Speech SDK](speech-sdk.md) or [Speech CLI](spx-basics.md) to integrate the SSML into your applications. For example, you can use the SSML for building a chat bot.
22
+
- Developer-friendly: You can listen to the output audio and adjust the SSML to improve speech synthesis. Then you can use the [Speech SDK](speech-sdk.md) or [Speech CLI](spx-basics.md) to integrate the SSML into your applications.
23
23
24
24
You have easy access to a broad portfolio of [languages and voices](language-support.md?tabs=tts). These voices include state-of-the-art prebuilt neural voices and your custom neural voice, if you built one.
25
25
26
-
To learn more, view the Audio Content Creation tutorial video [on YouTube](https://youtu.be/ygApYuOOG6w).
27
-
28
26
## Get started
29
27
30
-
The Audio Content Creation tool in Speech Studio is free to access, but you pay for Speech service usage. To work with the tool, you need to sign in with an Azure account and create a Speech resource. For each Azure account, you have free monthly speech quotas, which include 0.5 million characters for prebuilt neural voices (referred to as *Neural* on the [pricing page](https://aka.ms/speech-pricing)). Usually, the monthly allotted amount is enough for a small content team of around 3-5 people.
28
+
The Audio Content Creation tool in Speech Studio is free to access, but you pay for Speech service usage. To work with the tool, you need to sign in with an Azure account and create a Speech resource.
31
29
32
30
The next sections cover how to create an Azure account and get a Speech resource.
33
31
@@ -39,28 +37,28 @@ To work with Audio Content Creation, you need a [Microsoft account](https://acco
39
37
40
38
### Step 2: Create a Speech resource
41
39
42
-
After you sign up for the Azure account, you need to create a Speech resource in your Azure account to access Speech services. Create a Speech resource on the [Azure portal](https://portal.azure.com). For more information, see [Create an Azure AI services resource](../multi-service-resource.md?pivots=azportal).
40
+
After you sign up for the Azure account, you need to create a Speech resource in your Azure account to access Speech services. Create a Speech resource on the [Azure portal](https://portal.azure.com/#create/Microsoft.CognitiveServicesSpeechServices). For more information, see [Create an Azure AI services resource](../multi-service-resource.md?pivots=azportal).
43
41
44
42
It takes a few moments to deploy your new Speech resource. After the deployment is complete, you can start using the Audio Content Creation tool.
45
43
46
-
> [!NOTE]
47
-
> If you plan to use neural voices, make sure that you create your resource in [a region that supports neural voices](regions.md#regions).
44
+
> [!NOTE]
45
+
> If you plan to use neural voices, make sure that you create your resource in [a region that supports neural voices](regions.md#regions).
48
46
49
47
### Step 3: Sign in to Audio Content Creation with your Azure account and Speech resource
50
48
51
49
1. After you get the Azure account and the Speech resource, sign in to [Speech Studio](https://aka.ms/speechstudio/), and then select **Audio Content Creation**.
52
50
53
51
1. Select the Azure subscription and the Speech resource you want to work with, and then select **Use resource**.
54
52
55
-
The next time you sign in to Audio Content Creation, you're linked directly to the audio work files under the current Speech resource. You can check your Azure subscription details and status in the [Azure portal](https://portal.azure.com/).
56
-
57
-
If you don't have an available Speech resource and you're the owner or admin of an Azure subscription, you can create a Speech resource in Speech Studio by selecting **Create a new resource**.
58
-
59
-
If you have a user role for a certain Azure subscription, you might not have permissions to create a new Speech resource. To get access, contact your admin.
53
+
The next time you sign in to Audio Content Creation, you're linked directly to the audio work files under the current Speech resource. You can check your Azure subscription details and status in the [Azure portal](https://portal.azure.com/).
54
+
55
+
If you don't have an available Speech resource and you're the owner or admin of an Azure subscription, you can create a Speech resource in Speech Studio by selecting **Create a new resource**.
60
56
61
-
To switch your Speech resource at any time, select **Settings** at the top of the page.
57
+
If you have a user role for a certain Azure subscription, you might not have permissions to create a new Speech resource. To get access, contact your admin.
62
58
63
-
To switch directories, select **Settings** or go to your profile.
59
+
To switch your Speech resource at any time, select **Settings** at the top of the page.
60
+
61
+
To switch directories, select **Settings** or go to your profile.
64
62
65
63
## Use the tool
66
64
@@ -94,7 +92,6 @@ Each step in the preceding diagram is described here:
94
92
95
93
You can get your content into the Audio Content Creation tool in either of two ways:
96
94
97
-
98
95
### Option 1: Create a new audio tuning file
99
96
100
97
1. Select **New** > **Text file** to create a new audio tuning file.
@@ -179,8 +176,10 @@ To add users to a Speech resource so that they can use Audio Content Creation, d
179
176
180
177
1. In the [Azure portal](https://portal.azure.com/), select **All services** from the left navigation pane, and then search for **Azure AI services** or **Speech**.
181
178
1. Select your Speech resource.
179
+
182
180
> [!NOTE]
183
181
> You can also set up Azure RBAC for whole resource groups, subscriptions, or management groups. Do this by selecting the desired scope level and then navigating to the desired item (for example, selecting **Resource groups** and then selecting your resource group).
182
+
184
183
1. Select **Access control (IAM)** on the left navigation pane.
185
184
1. Select **Add** > **Add role assignment**.
186
185
1. On the **Role** tab on the next screen, select a role (such as **Owner**) that you want to add.
> This feature is currently in public preview. This preview is provided without a service-level agreement, and is not recommended for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
18
+
> This feature is currently in public preview. This preview is provided without a service-level agreement, and isn't recommended for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
19
19
20
20
With conversation transcription multichannel diarization, you can transcribe meetings with the ability to add, remove, and identify multiple participants by streaming audio to the Speech service. You first create voice signatures for each participant using the REST API, and then use the voice signatures with the Speech SDK to transcribe meetings. See the conversation transcription [overview](meeting-transcription.md) for more information.
0 commit comments