Skip to content

Commit 7d7079c

Browse files
authored
Merge pull request #231265 from laujan/70958-merge-peer-review-updates
70958 merge peer review updates
2 parents 889f4b2 + a2c5e6a commit 7d7079c

File tree

14 files changed

+169
-189
lines changed

14 files changed

+169
-189
lines changed

articles/cognitive-services/Translator/create-translator-resource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: translator-text
1111
ms.topic: how-to
12-
ms.date: 02/14/2023
12+
ms.date: 03/17/2023
1313
---
1414

1515
# Create a Translator resource
@@ -34,7 +34,7 @@ The Translator service can be accessed through two different resource types:
3434

3535
1. **Resource Group**. You can create a new resource group or add your resource to a pre-existing resource group that shares the same lifecycle, permissions, and policies.
3636

37-
1. **Resource Region**. Choose **Global** unless your business or application requires a specific region. If you're planning on using the Document Translation feature with managed identity authentication, choose a non-global region.
37+
1. **Resource Region**. Choose **Global** unless your business or application requires a specific region. If you're planning on using the Document Translation feature with [managed identity authorization](document-translation/how-to-guides/create-use-managed-identities.md), choose a geographic region such as **East US**.
3838

3939
1. **Name**. Enter the name you have chosen for your resource. The name you choose must be unique within Azure.
4040

articles/cognitive-services/Translator/custom-translator/how-to/create-manage-workspace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ms.topic: how-to
5050

5151
Select a workspace and navigate to **Workspace settings**. You can manage the following workspace settings:
5252

53-
* Change the resource key for global regions. If you're using a regional specific resource, you can't change your resource key.
53+
* Change the resource key if the region is **Global**. If you're using a region-specific resource such as **East US**, you can't change your resource key.
5454

5555
* Change the workspace name.
5656

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

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

1414
# Managed identities for Document Translation
1515

16-
Managed identities for Azure resources are service principals that create an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources:
16+
Managed identities for Azure resources are service principals that create an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources. Managed identities are a safer way to grant access to data without having SAS tokens included with your HTTP requests.
1717

1818
:::image type="content" source="../media/managed-identity-rbac-flow.png" alt-text="Screenshot of managed identity flow (RBAC).":::
1919

20-
* 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.
20+
* You can use managed identities to grant access to any resource that supports Azure AD authentication, including your own applications.
2121

2222
* 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).
2323

2424
* There's no added cost to use managed identities in Azure.
2525

26-
27-
28-
2926
> [!IMPORTANT]
3027
>
31-
> * When using managed identities, don't include a SAS token URL with your HTTP requests—your requests will fail.
28+
> * When using managed identities, don't include a SAS token URL with your HTTP requests—your requests will fail. Using managed identities replaces the requirement for you to include shared access signature tokens (SAS) with your [source and target URLs](#post-request-body).
3229
>
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.
30+
> * To use managed identities for Document Translation operations, you must [create your Translator resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) in a specific geographic Azure region such as **East US**. If your Translator resource region is set to **Global**, then you can't use managed identity for Document Translation. You can still use [Shared Access Signature tokens (SAS)](create-sas-tokens.md) for Document Translation.
3431
>
3532
> * 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/).
3633
>
37-
> * Managed identities are a safer way to grant access to data without having SAS tokens included with your HTTP requests.
3834
3935
## Prerequisites
4036

4137
To get started, you need:
4238

4339
* An active [**Azure account**](https://azure.microsoft.com/free/cognitive-services/)—if you don't have one, you can [**create a free account**](https://azure.microsoft.com/free/).
4440

45-
* A [**single-service Translator**](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) (not a multi-service Cognitive Services) resource assigned to a **non-global** region. For detailed steps, _see_ [Create a Cognitive Services resource using the Azure portal](../../../cognitive-services-apis-create-account.md?tabs=multiservice%2cwindows).
41+
* A [**single-service Translator**](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) (not a multi-service Cognitive Services) resource assigned to a **geographical** region such as **West US**. For detailed steps, _see_ [Create a Cognitive Services resource using the Azure portal](../../../cognitive-services-apis-create-account.md?tabs=multiservice%2cwindows).
4642

4743
* A brief understanding of [**Azure role-based access control (`Azure RBAC`)**](../../../../role-based-access-control/role-assignments-portal.md) using the Azure portal.
4844

@@ -153,7 +149,7 @@ The following headers are included with each Document Translation API request:
153149
* The `targetUrl` for each target language must be unique.
154150

155151
>[!NOTE]
156-
> If a file with the same name already exists in the destination, the job will fail.
152+
> If a file with the same name already exists in the destination, the job will fail. When using managed identities, don't include a SAS token URL with your HTTP requests. Otherwise your requests will fail.
157153
158154
<!-- markdownlint-disable MD024 -->
159155
### Translate all documents in a container

articles/cognitive-services/Translator/document-translation/how-to-guides/use-rest-api-programmatically.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: translator-text
99
ms.topic: quickstart
10-
ms.date: 12/19/2022
10+
ms.date: 03/17/2023
1111
ms.author: lajanuar
1212
recommendations: false
1313
ms.devlang: csharp, golang, java, javascript, python
@@ -16,7 +16,7 @@ ms.custom: mode-other
1616

1717
# Use REST APIs programmatically
1818

19-
Document Translation is a cloud-based feature of the [Azure Translator](../../translator-overview.md) service. You can use the Document Translation API to asynchronously translate whole documents in [supported languages](../../language-support.md) and various [file formats](../overview.md#supported-document-formats) while preserving source document structure and text formatting. In this how-to guide, you'll learn to use Document Translation APIs with a programming language of your choice and the HTTP REST API.
19+
Document Translation is a cloud-based feature of the [Azure Translator](../../translator-overview.md) service. You can use the Document Translation API to asynchronously translate whole documents in [supported languages](../../language-support.md) and various [file formats](../overview.md#supported-document-formats) while preserving source document structure and text formatting. In this how-to guide, you learn to use Document Translation APIs with a programming language of your choice and the HTTP REST API.
2020

2121
## Prerequisites
2222

@@ -27,11 +27,11 @@ ms.custom: mode-other
2727
> * Document Translation is **only** supported 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/).
2828
>
2929
30-
To get started, you'll need:
30+
To get started, you need:
3131

3232
* An active [**Azure account**](https://azure.microsoft.com/free/cognitive-services/). If you don't have one, you can [**create a free account**](https://azure.microsoft.com/free/).
3333

34-
* An [**Azure blob storage account**](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM). You'll create containers to store and organize your blob data within your storage account.
34+
* An [**Azure blob storage account**](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM). You create containers to store and organize your blob data within your storage account.
3535

3636
* A [**single-service Translator resource**](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) (**not** a multi-service Cognitive Services resource):
3737

@@ -41,7 +41,7 @@ To get started, you'll need:
4141

4242
1. **Resource Group**. You can create a new resource group or add your resource to a pre-existing resource group that shares the same lifecycle, permissions, and policies.
4343

44-
1. **Resource Region**. Choose **Global** unless your business or application requires a specific region. If you're planning on using a [system-assigned managed identity](create-use-managed-identities.md) for authentication, choose a **non-global** region.
44+
1. **Resource Region**. Choose **Global** unless your business or application requires a specific region. If you're planning on using a [system-assigned managed identity](create-use-managed-identities.md) for authentication, choose a **geographic** region like **West US**.
4545

4646
1. **Name**. Enter the name you have chosen for your resource. The name you choose must be unique within Azure.
4747

@@ -84,16 +84,16 @@ Requests to the Translator service require a read-only key for authenticating ac
8484
1. If you've created a new resource, after it deploys, select **Go to resource**. If you have an existing Document Translation resource, navigate directly to your resource page.
8585
1. In the left rail, under *Resource Management*, select **Keys and Endpoint**.
8686
1. Copy and paste your key in a convenient location, such as *Microsoft Notepad*.
87-
1. You'll paste it into the code ample to authenticate your request to the Document Translation service.
87+
1. You paste it into the code sample to authenticate your request to the Document Translation service.
8888

8989
:::image type="content" source="../../media/translator-keys.png" alt-text="Image of the get your key field in Azure portal.":::
9090

9191
## Create Azure blob storage containers
9292

93-
You'll need to [**create containers**](../../../../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container) in your [**Azure blob storage account**](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM) for source and target files.
93+
You need to [**create containers**](../../../../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container) in your [**Azure blob storage account**](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM) for source and target files.
9494

9595
* **Source container**. This container is where you upload your files for translation (required).
96-
* **Target container**. This container is where your translated files will be stored (required).
96+
* **Target container**. This container is where your translated files are stored (required).
9797

9898
> [!NOTE]
9999
> Document Translation supports glossaries as blobs in target containers (not separate glossary containers). If want to include a custom glossary, add it to the target container and include the` glossaryUrl` with the request. If the translation language pair is not present in the glossary, it will not be applied. *See* [Translate documents using a custom glossary](#translate-documents-using-a-custom-glossary)
@@ -114,7 +114,7 @@ The `sourceUrl` , `targetUrl` , and optional `glossaryUrl` must include a Share
114114
115115
## HTTP requests
116116

117-
A batch Document Translation request is submitted to your Translator service endpoint via a POST request. If successful, the POST method returns a `202 Accepted` response code and the batch request is created by the service. The translated documents will be listed in your target container.
117+
A batch Document Translation request is submitted to your Translator service endpoint via a POST request. If successful, the POST method returns a `202 Accepted` response code and the service creates a batch request. The translated documents are listed in your target container.
118118

119119
### HTTP headers
120120

@@ -269,7 +269,7 @@ gradle init --type basic
269269

270270
* When prompted to choose a **DSL**, select **Kotlin**.
271271

272-
* Update the `build.gradle.kts` file. Keep in mind that you'll need to update your `mainClassName` depending on the sample:
272+
* Update the `build.gradle.kts` file. Keep in mind that you need to update your `mainClassName` depending on the sample:
273273

274274
```java
275275
plugins {
@@ -324,7 +324,7 @@ gradle run
324324
325325
#### Locating the `id` value
326326

327-
* You'll find the job `id` in the POST method response Header `Operation-Location` URL value. The last parameter of the URL is the operation's job **`id`**:
327+
* You find the job `id` in the POST method response Header `Operation-Location` URL value. The last parameter of the URL is the operation's job **`id`**:
328328

329329
|**Response header**|**Result URL**|
330330
|-----------------------|----------------|
@@ -1100,7 +1100,7 @@ func main() {
11001100

11011101
### Brief overview
11021102

1103-
Cancel currently processing or queued job. Only documents for which translation hasn't started will be canceled.
1103+
Cancel currently processing or queued job. Only documents for which translation hasn't started are canceled.
11041104

11051105
### [C#](#tab/csharp)
11061106

articles/cognitive-services/Translator/document-translation/language-studio.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: translator-text
99
ms.topic: quickstart
10-
ms.date: 02/27/2023
10+
ms.date: 03/17/2023
1111
ms.author: lajanuar
1212
recommendations: false
1313
---
@@ -17,7 +17,7 @@ recommendations: false
1717
> [!IMPORTANT]
1818
> Document Translation in Language Studio is currently in Public Preview. Features, approaches and processes may change, prior to General Availability (GA), based on user feedback.
1919
20-
Document Translation in [**Azure Cognitive Services Language Studio**](https://language.cognitive.azure.com/home) is a no-code user interface that lets you interactively translate documents from local or Azure blob storage .
20+
Document Translation in [**Azure Cognitive Services Language Studio**](https://language.cognitive.azure.com/home) is a no-code user interface that lets you interactively translate documents from local or Azure blob storage.
2121

2222
## Prerequisites
2323

@@ -36,7 +36,8 @@ Document Translation in Language Studio requires the following resources:
3636

3737
* A [**single-service Translator resource**](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) (**not** a multi-service Cognitive Services resource) with [**system-assigned managed identity**](how-to-guides/create-use-managed-identities.md#enable-a-system-assigned-managed-identity) enabled and a [**Storage Blob Data Contributor**](how-to-guides/create-use-managed-identities.md#grant-access-to-your-storage-account) role assigned. For more information, *see* [**Managed identities for Document Translation**](how-to-guides/create-use-managed-identities.md). Also, make sure the region and pricing sections are completed as follows:
3838

39-
* **Resource Region**. For this project, choose a **non-global** region. For Document Translation, [system-assigned managed identity](how-to-guides/create-use-managed-identities.md) isn't supported in the global region.
39+
* **Resource Region**. For this project, choose a geographic region such as **East US**. For Document Translation, [system-assigned managed identity](how-to-guides/create-use-managed-identities.md) isn't supported for the **Global** region.
40+
4041
* **Pricing tier**. Select Standard S1 or D3 to try the service. Document Translation isn't supported in the free tier.
4142

4243
* An [**Azure blob storage account**](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM). An active Azure blob storage account is required to use Document Translation in the Language Studio.
@@ -45,7 +46,7 @@ Now that you've completed the prerequisites, let's start translating documents!
4546

4647
## Get started
4748

48-
At least one **source document** is required. You can download our [document translation sample document](https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/Translator/document-translation-sample.docx).
49+
At least one **source document** is required. You can download our [document translation sample document](https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/Translator/document-translation-sample.docx). The source language is English.
4950

5051
1. Navigate to [Language Studio](https://language.cognitive.azure.com/home).
5152

0 commit comments

Comments
 (0)