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/document-translation/how-to-guides/create-sas-tokens.md
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,20 @@ ms.topic: how-to
5
5
manager: nitinme
6
6
ms.author: lajanuar
7
7
author: laujan
8
-
ms.date: 12/17/2022
8
+
ms.date: 03/24/2023
9
9
---
10
10
11
11
# Create SAS tokens for your storage containers
12
12
13
-
In this article, you'll learn how to create user delegation, shared access signature (SAS) tokens, using the Azure portal or Azure Storage Explorer. User delegation SAS tokens are secured with Azure AD credentials. SAS tokens provide secure, delegated access to resources in your Azure storage account.
13
+
In this article, you learn how to create user delegation, shared access signature (SAS) tokens, using the Azure portal or Azure Storage Explorer. User delegation SAS tokens are secured with Azure AD credentials. SAS tokens provide secure, delegated access to resources in your Azure storage account.
14
+
15
+
>[!TIP]
16
+
>
17
+
> [Managed identities](create-use-managed-identities.md) provide an alternate method for you to grant access to your storage data without the need to include SAS tokens with your HTTP requests. *See*, [Managed identities for Document Translation](create-use-managed-identities.md).
18
+
>
19
+
> * You can use managed identities to grant access to any resource that supports Azure AD authentication, including your own applications.
20
+
> * Using managed identities replaces the requirement for you to include shared access signature tokens (SAS) with your source and target URLs.
21
+
> * There's no added cost to use managed identities in Azure.
To get started, you'll need the following resources:
45
+
To get started, you need the following resources:
38
46
39
47
* 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/).
40
48
41
49
* A [Translator](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) resource.
42
50
43
-
* A **standard performance**[Azure Blob Storage account](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM). You'll create containers to store and organize your files within your storage account. If you don't know how to create an Azure storage account with a storage container, follow these quickstarts:
51
+
* A **standard performance**[Azure Blob Storage account](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM). You also need to create containers to store and organize your files within your storage account. If you don't know how to create an Azure storage account with a storage container, follow these quickstarts:
44
52
45
53
*[Create a storage account](../../../../storage/common/storage-account-create.md). When you create your storage account, select **Standard** performance in the **Instance details** > **Performance** field.
46
54
*[Create a container](../../../../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container). When you create your container, set **Public access level** to **Container** (anonymous read access for containers and files) in the **New Container** window.
@@ -68,16 +76,16 @@ Go to the [Azure portal](https://portal.azure.com/#home) and navigate to your co
68
76
1. Specify the signed key **Start** and **Expiry** times.
69
77
70
78
* When you create a shared access signature (SAS), the default duration is 48 hours. After 48 hours, you'll need to create a new token.
71
-
* Consider setting a longer duration period for the time you'll be using your storage account for Translator Service operations.
79
+
* Consider setting a longer duration period for the time you're using your storage account for Translator Service operations.
72
80
* The value for the expiry time is a maximum of seven days from the creation of the SAS token.
73
81
74
-
1. The **Allowed IP addresses** field is optional and specifies an IP address or a range of IP addresses from which to accept requests. If the request IP address doesn't match the IP address or address range specified on the SAS token, it won't be authorized.
82
+
1. The **Allowed IP addresses** field is optional and specifies an IP address or a range of IP addresses from which to accept requests. If the request IP address doesn't match the IP address or address range specified on the SAS token, authorization fails.
75
83
76
84
1. The **Allowed protocols** field is optional and specifies the protocol permitted for a request made with the SAS. The default value is HTTPS.
77
85
78
86
1. Review then select **Generate SAS token and URL**.
79
87
80
-
1. The **Blob SAS token** query string and **Blob SAS URL**will be displayed in the lower area of window.
88
+
1. The **Blob SAS token** query string and **Blob SAS URL**are displayed in the lower area of window.
81
89
82
90
1.**Copy and paste the Blob SAS token and URL values in a secure location. They'll only be displayed once and cannot be retrieved once the window is closed.**
83
91
@@ -87,7 +95,7 @@ Go to the [Azure portal](https://portal.azure.com/#home) and navigate to your co
87
95
88
96
Azure Storage Explorer is a free standalone app that enables you to easily manage your Azure cloud storage resources from your desktop.
89
97
90
-
* You'll need the [**Azure Storage Explorer**](../../../../vs-azure-tools-storage-manage-with-storage-explorer.md) app installed in your Windows, macOS, or Linux development environment.
98
+
* You need the [**Azure Storage Explorer**](../../../../vs-azure-tools-storage-manage-with-storage-explorer.md) app installed in your Windows, macOS, or Linux development environment.
91
99
92
100
* After the Azure Storage Explorer app is installed, [connect it to the storage account](../../../../vs-azure-tools-storage-manage-with-storage-explorer.md?tabs=windows#connect-to-a-storage-account-or-service) you're using for Document Translation. Follow these steps to create tokens for a storage container or specific blob file:
93
101
@@ -104,7 +112,7 @@ Azure Storage Explorer is a free standalone app that enables you to easily manag
104
112
* Define your container **Permissions** by checking and/or clearing the appropriate check box.
105
113
* Review and select **Create**.
106
114
107
-
1. A new window will appear with the **Container** name, **URI**, and **Query string** for your container.
115
+
1. A new window appears with the **Container** name, **URI**, and **Query string** for your container.
108
116
1.**Copy and paste the container, URI, and query string values in a secure location. They'll only be displayed once and can't be retrieved once the window is closed.**
109
117
1. To [construct a SAS URL](#use-your-sas-url-to-grant-access), append the SAS token (URI) to the URL for a storage service.
110
118
@@ -125,15 +133,15 @@ Azure Storage Explorer is a free standalone app that enables you to easily manag
125
133
* Select **key1** or **key2**.
126
134
* Review and select **Create**.
127
135
128
-
1. A new window will appear with the **Blob** name, **URI**, and **Query string** for your blob.
136
+
1. A new window appears with the **Blob** name, **URI**, and **Query string** for your blob.
129
137
1.**Copy and paste the blob, URI, and query string values in a secure location. They will only be displayed once and cannot be retrieved once the window is closed.**
130
138
1. To [construct a SAS URL](#use-your-sas-url-to-grant-access), append the SAS token (URI) to the URL for a storage service.
131
139
132
140
---
133
141
134
142
### Use your SAS URL to grant access
135
143
136
-
The SAS URL includes a special set of [query parameters](/rest/api/storageservices/create-user-delegation-sas#assign-permissions-with-rbac). Those parameters indicate how the resources may be accessed by the client.
144
+
The SAS URL includes a special set of [query parameters](/rest/api/storageservices/create-user-delegation-sas#assign-permissions-with-rbac). Those parameters indicate how the client accesses the resources.
137
145
138
146
You can include your SAS URL with REST API requests in two ways:
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/document-translation/how-to-guides/create-use-managed-identities.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
@@ -7,13 +7,13 @@ manager: nitinme
7
7
ms.service: cognitive-services
8
8
ms.subservice: translator-text
9
9
ms.topic: how-to
10
-
ms.date: 03/17/2023
10
+
ms.date: 03/24/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. Managed identities are a safer way to grant access to data without having SAS tokens included with your HTTP requests.
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 the need to include SAS tokens 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).":::
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/document-translation/overview.md
+23-29Lines changed: 23 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,14 @@ ms.service: cognitive-services
8
8
ms.subservice: translator-text
9
9
ms.custom: event-tier1-build-2022
10
10
ms.topic: overview
11
-
ms.date: 07/13/2022
11
+
ms.date: 03/24/2023
12
12
ms.author: lajanuar
13
13
recommendations: false
14
14
---
15
15
# What is Document Translation?
16
16
17
17
Document Translation is a cloud-based feature of the [Azure Translator](../translator-overview.md) service and is part of the Azure Cognitive Service family of REST APIs. The Document Translation API can be used to translate multiple and complex documents across all [supported languages and dialects](../../language-support.md), while preserving original document structure and data format.
18
18
19
-
This documentation contains the following article types:
20
-
21
-
*[**Quickstarts**](get-started-with-document-translation.md) are getting-started instructions to guide you through making requests to the service.
22
-
*[**How-to guides**](create-sas-tokens.md) contain instructions for using the feature in more specific or customized ways.
23
-
*[**Reference**](reference/rest-api-guide.md) provide REST API settings, values, keywords, and configuration.
24
-
25
19
## Document Translation key features
26
20
27
21
| Feature | Description |
@@ -48,37 +42,37 @@ You can add Document Translation to your applications using the REST API or a cl
48
42
49
43
## Get started
50
44
51
-
In our how-to guide, you'll learn how to quickly get started using Document Translation. To begin, you'll need 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).
45
+
In our quickstart, you learn how to rapidly get started using Document Translation. To begin, you need 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).
52
46
53
47
> [!div class="nextstepaction"]
54
48
> [Start here](get-started-with-document-translation.md"Learn how to use Document Translation with HTTP REST")
55
49
56
50
## Supported document formats
57
51
58
-
The following document file types are supported by Document Translation:
52
+
Document Translation supports the following document file types:
59
53
60
54
| File type| File extension|Description|
61
55
|---|---|--|
62
-
|Adobe PDF|pdf|Portable document file format. Document Translation uses optical character recognition (OCR) technology to extract and translate text in scanned PDF document while retaining the original layout.|
63
-
|Comma-Separated Values |csv| A comma-delimited raw-data file used by spreadsheet programs.|
64
-
|HTML|html, htm|Hyper Text Markup Language.|
56
+
|Adobe PDF|`pdf`|Portable document file format. Document Translation uses optical character recognition (OCR) technology to extract and translate text in scanned PDF document while retaining the original layout.|
57
+
|Comma-Separated Values |`csv`| A comma-delimited raw-data file used by spreadsheet programs.|
58
+
|HTML|`html`, `htm`|Hyper Text Markup Language.|
65
59
|Localization Interchange File Format|xlf| A parallel document format, export of Translation Memory systems. The languages used are defined inside the file.|
66
-
|Markdown| markdown, mdown, mkdn, md, mkd, mdwn, mdtxt, mdtext, rmd| A lightweight markup language for creating formatted text.|
67
-
|MHTML|mthml, mht| A web page archive format used to combine HTML code and its companion resources.|
68
-
|Microsoft Excel|xls, xlsx|A spreadsheet file for data analysis and documentation.|
69
-
|Microsoft Outlook|msg|An email message created or saved within Microsoft Outlook.|
70
-
|Microsoft PowerPoint|ppt, pptx| A presentation file used to display content in a slideshow format.|
71
-
|Microsoft Word|doc, docx| A text document file.|
72
-
|OpenDocument Text|odt|An open-source text document file.|
@@ -88,13 +82,13 @@ Source file types will be preserved during the document translation with the fol
88
82
89
83
## Supported glossary formats
90
84
91
-
The following glossary file types are supported by Document Translation:
85
+
Document Translation supports the following glossary file types:
92
86
93
87
| File type| File extension|Description|
94
88
|---|---|--|
95
-
|Comma-Separated Values| csv |A comma-delimited raw-data file used by spreadsheet programs.|
96
-
|Localization Interchange File Format| xlf , xliff| A parallel document format, export of Translation Memory systems The languages used are defined inside the file.|
97
-
|Tab-Separated Values/TAB|tsv, tab| A tab-delimited raw-data file used by spreadsheet programs.|
89
+
|Comma-Separated Values|`csv`|A comma-delimited raw-data file used by spreadsheet programs.|
90
+
|Localization Interchange File Format|`xlf` , `xliff`| A parallel document format, export of Translation Memory systems The languages used are defined inside the file.|
91
+
|Tab-Separated Values/TAB|`tsv`, `tab`| A tab-delimited raw-data file used by spreadsheet programs.|
0 commit comments