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/cognitive-services/Translator/create-translator-resource.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
@@ -9,7 +9,7 @@ manager: nitinme
9
9
ms.service: cognitive-services
10
10
ms.subservice: translator-text
11
11
ms.topic: how-to
12
-
ms.date: 02/14/2023
12
+
ms.date: 03/17/2023
13
13
---
14
14
15
15
# Create a Translator resource
@@ -34,7 +34,7 @@ The Translator service can be accessed through two different resource types:
34
34
35
35
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.
36
36
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**.
38
38
39
39
1.**Name**. Enter the name you have chosen for your resource. The name you choose must be unique within Azure.
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/custom-translator/how-to/create-manage-workspace.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ ms.topic: how-to
50
50
51
51
Select a workspace and navigate to **Workspace settings**. You can manage the following workspace settings:
52
52
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.
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/document-translation/how-to-guides/create-use-managed-identities.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,42 +7,38 @@ manager: nitinme
7
7
ms.service: cognitive-services
8
8
ms.subservice: translator-text
9
9
ms.topic: how-to
10
-
ms.date: 03/16/2023
10
+
ms.date: 03/17/2023
11
11
ms.author: lajanuar
12
12
---
13
13
14
14
# Managed identities for Document Translation
15
15
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.
17
17
18
18
:::image type="content" source="../media/managed-identity-rbac-flow.png" alt-text="Screenshot of managed identity flow (RBAC).":::
19
19
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.
21
21
22
22
* 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).
23
23
24
24
* There's no added cost to use managed identities in Azure.
25
25
26
-
27
-
28
-
29
26
> [!IMPORTANT]
30
27
>
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).
32
29
>
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.
34
31
>
35
32
> * 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
33
>
37
-
> * Managed identities are a safer way to grant access to data without having SAS tokens included with your HTTP requests.
38
34
39
35
## Prerequisites
40
36
41
37
To get started, you need:
42
38
43
39
* 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/).
44
40
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).
46
42
47
43
* A brief understanding of [**Azure role-based access control (`Azure RBAC`)**](../../../../role-based-access-control/role-assignments-portal.md) using the Azure portal.
48
44
@@ -153,7 +149,7 @@ The following headers are included with each Document Translation API request:
153
149
* The `targetUrl` for each target language must be unique.
154
150
155
151
>[!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.
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/document-translation/how-to-guides/use-rest-api-programmatically.md
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.
20
20
21
21
## Prerequisites
22
22
@@ -27,11 +27,11 @@ ms.custom: mode-other
27
27
> * 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/).
28
28
>
29
29
30
-
To get started, you'll need:
30
+
To get started, you need:
31
31
32
32
* 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/).
33
33
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.
35
35
36
36
* A [**single-service Translator resource**](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) (**not** a multi-service Cognitive Services resource):
37
37
@@ -41,7 +41,7 @@ To get started, you'll need:
41
41
42
42
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.
43
43
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**.
45
45
46
46
1.**Name**. Enter the name you have chosen for your resource. The name you choose must be unique within Azure.
47
47
@@ -84,16 +84,16 @@ Requests to the Translator service require a read-only key for authenticating ac
84
84
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.
85
85
1. In the left rail, under *Resource Management*, select **Keys and Endpoint**.
86
86
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.
88
88
89
89
:::image type="content" source="../../media/translator-keys.png" alt-text="Image of the get your key field in Azure portal.":::
90
90
91
91
## Create Azure blob storage containers
92
92
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.
94
94
95
95
***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).
97
97
98
98
> [!NOTE]
99
99
> 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
114
114
115
115
## HTTP requests
116
116
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.
118
118
119
119
### HTTP headers
120
120
@@ -269,7 +269,7 @@ gradle init --type basic
269
269
270
270
* When prompted to choose a **DSL**, select **Kotlin**.
271
271
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:
273
273
274
274
```java
275
275
plugins {
@@ -324,7 +324,7 @@ gradle run
324
324
325
325
#### Locating the `id` value
326
326
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`**:
328
328
329
329
|**Response header**|**Result URL**|
330
330
|-----------------------|----------------|
@@ -1100,7 +1100,7 @@ func main() {
1100
1100
1101
1101
### Brief overview
1102
1102
1103
-
Cancelcurrentlyprocessingorqueuedjob. Onlydocumentsforwhichtranslationhasn't started will be canceled.
1103
+
Cancelcurrentlyprocessingorqueuedjob. Onlydocumentsforwhichtranslationhasn't started are canceled.
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/document-translation/language-studio.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: nitinme
7
7
ms.service: cognitive-services
8
8
ms.subservice: translator-text
9
9
ms.topic: quickstart
10
-
ms.date: 02/27/2023
10
+
ms.date: 03/17/2023
11
11
ms.author: lajanuar
12
12
recommendations: false
13
13
---
@@ -17,7 +17,7 @@ recommendations: false
17
17
> [!IMPORTANT]
18
18
> 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.
19
19
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.
21
21
22
22
## Prerequisites
23
23
@@ -36,7 +36,8 @@ Document Translation in Language Studio requires the following resources:
36
36
37
37
* 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:
38
38
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
+
40
41
***Pricing tier**. Select Standard S1 or D3 to try the service. Document Translation isn't supported in the free tier.
41
42
42
43
* 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!
45
46
46
47
## Get started
47
48
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.
49
50
50
51
1. Navigate to [Language Studio](https://language.cognitive.azure.com/home).
0 commit comments