Skip to content

Commit 850aad9

Browse files
Merge pull request #231130 from laujan/70755-update-glossary-with-mi
update code sample to reflect managed identity
2 parents 92221b3 + 43393ef commit 850aad9

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

articles/cognitive-services/Translator/document-translation/how-to-guides/create-use-glossaries.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: how-to
55
manager: nitinme
66
ms.author: lajanuar
77
author: laujan
8-
ms.date: 03/14/2023
8+
ms.date: 03/16/2023
99
---
1010

1111
# Use glossaries with Document Translation
@@ -20,6 +20,9 @@ A glossary is a list of terms with definitions that you create for the Document
2020

2121
## Create, upload, and use a glossary file
2222

23+
> [!NOTE]
24+
> The following example uses an enabled [**system-assigned managed identity**](create-use-managed-identities.md#enable-a-system-assigned-managed-identity) and a [**Storage Blob Data Contributor**](create-use-managed-identities.md#grant-access-to-your-storage-account) role assignment for authentication. For more information, *see* [**Managed identities for Document Translation**](./create-use-managed-identities.md).
25+
2326
1. **Create your glossary file.** Create a file in a supported format (preferably tab-separated values) that contains all the terms and phrases you want to use in your translation.
2427

2528
To check if your file format is supported, *see* [Get supported glossary formats](../reference/get-supported-glossary-formats.md).
@@ -43,7 +46,7 @@ A glossary is a list of terms with definitions that you create for the Document
4346

4447
1. **Specify your glossary in the translation request.** Include the **`glossary URL`**, **`format`**, and **`version`** in your **`POST`** request:
4548

46-
:::code language="json" source="../../../../../cognitive-services-rest-samples/curl/Translator/translate-with-glossary.json" range="1-23" highlight="13-15":::
49+
:::code language="json" source="../../../../../cognitive-services-rest-samples/curl/Translator/translate-with-glossary.json" range="1-23" highlight="13-14":::
4750

4851
### Case sensitivity
4952

articles/cognitive-services/Translator/document-translation/how-to-guides/create-use-managed-identities.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,35 @@ manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: translator-text
99
ms.topic: how-to
10-
ms.date: 02/09/2023
10+
ms.date: 03/16/2023
1111
ms.author: lajanuar
1212
---
1313

1414
# Managed identities for Document Translation
1515

16-
:::image type="content" source="../media/managed-identity-rbac-flow.png" alt-text="Screenshot of managed identity flow (RBAC).":::
17-
18-
> [!IMPORTANT]
19-
>
20-
> * Currently, Document Translation doesn't support managed identity in the global region. If you intend to use managed identities for Document Translation operations, [create your Translator resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) in a non-global Azure region.
21-
>
22-
> * Document Translation is **only** available in the S1 Standard Service Plan (Pay-as-you-go) or in the D3 Volume Discount Plan. _See_ [Cognitive Services pricing—Translator](https://azure.microsoft.com/pricing/details/cognitive-services/translator/).
23-
>
24-
2516
Managed identities for Azure resources are service principals that create an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources:
2617

18+
:::image type="content" source="../media/managed-identity-rbac-flow.png" alt-text="Screenshot of managed identity flow (RBAC).":::
19+
2720
* You can use managed identities to grant access to any resource that supports Azure AD authentication, including your own applications. Managed identities eliminate the need for you to include shared access signature tokens (SAS) with your HTTP requests.
2821

2922
* To grant access to an Azure resource, assign an Azure role to a managed identity using [Azure role-based access control (`Azure RBAC`)](../../../../role-based-access-control/overview.md).
3023

3124
* There's no added cost to use managed identities in Azure.
3225

33-
> [!TIP]
26+
27+
28+
29+
> [!IMPORTANT]
3430
>
3531
> * When using managed identities, don't include a SAS token URL with your HTTP requests—your requests will fail.
3632
>
33+
> * Currently, Document Translation doesn't support managed identity in the global region. If you intend to use managed identities for Document Translation operations, [create your Translator resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) in a non-global Azure region.
34+
>
35+
> * Document Translation is **only** available in the S1 Standard Service Plan (Pay-as-you-go) or in the D3 Volume Discount Plan. _See_ [Cognitive Services pricing—Translator](https://azure.microsoft.com/pricing/details/cognitive-services/translator/).
36+
>
3737
> * Managed identities are a safer way to grant access to data without having SAS tokens included with your HTTP requests.
3838
39-
4039
## Prerequisites
4140

4241
To get started, you need:
@@ -130,7 +129,7 @@ The **Storage Blob Data Contributor** role gives Translator (represented by the
130129

131130
* With managed identity and `Azure RBAC`, you no longer need to include SAS URLs.
132131

133-
* If successful, the POST method returns a `202 Accepted` response code and the batch request is created by the service.
132+
* If successful, the POST method returns a `202 Accepted` response code and the service creates a batch request.
134133

135134
* The translated documents appear in your target container.
136135

0 commit comments

Comments
 (0)