Skip to content

Commit 176a849

Browse files
authored
Merge pull request #232038 from laujan/72389-add-link-from-sas-to-mi
add tip to sas article
2 parents 7492f1e + 7b56ce7 commit 176a849

File tree

3 files changed

+44
-42
lines changed

3 files changed

+44
-42
lines changed

articles/cognitive-services/Translator/document-translation/how-to-guides/create-sas-tokens.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ ms.topic: how-to
55
manager: nitinme
66
ms.author: lajanuar
77
author: laujan
8-
ms.date: 12/17/2022
8+
ms.date: 03/24/2023
99
---
1010

1111
# Create SAS tokens for your storage containers
1212

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.
1422
1523
At a high level, here's how SAS tokens work:
1624

@@ -34,13 +42,13 @@ Azure Blob Storage offers three resource types:
3442
3543
## Prerequisites
3644

37-
To get started, you'll need the following resources:
45+
To get started, you need the following resources:
3846

3947
* 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/).
4048

4149
* A [Translator](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) resource.
4250

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:
4452

4553
* [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.
4654
* [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
6876
1. Specify the signed key **Start** and **Expiry** times.
6977

7078
* 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.
7280
* The value for the expiry time is a maximum of seven days from the creation of the SAS token.
7381

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.
7583

7684
1. The **Allowed protocols** field is optional and specifies the protocol permitted for a request made with the SAS. The default value is HTTPS.
7785

7886
1. Review then select **Generate SAS token and URL**.
7987

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.
8189

8290
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.**
8391

@@ -87,7 +95,7 @@ Go to the [Azure portal](https://portal.azure.com/#home) and navigate to your co
8795

8896
Azure Storage Explorer is a free standalone app that enables you to easily manage your Azure cloud storage resources from your desktop.
8997

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.
9199

92100
* 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:
93101

@@ -104,7 +112,7 @@ Azure Storage Explorer is a free standalone app that enables you to easily manag
104112
* Define your container **Permissions** by checking and/or clearing the appropriate check box.
105113
* Review and select **Create**.
106114

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.
108116
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.**
109117
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.
110118

@@ -125,15 +133,15 @@ Azure Storage Explorer is a free standalone app that enables you to easily manag
125133
* Select **key1** or **key2**.
126134
* Review and select **Create**.
127135

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.
129137
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.**
130138
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.
131139

132140
---
133141

134142
### Use your SAS URL to grant access
135143

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.
137145

138146
You can include your SAS URL with REST API requests in two ways:
139147

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: translator-text
99
ms.topic: how-to
10-
ms.date: 03/17/2023
10+
ms.date: 03/24/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. 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.
1717

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

articles/cognitive-services/Translator/document-translation/overview.md

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,14 @@ ms.service: cognitive-services
88
ms.subservice: translator-text
99
ms.custom: event-tier1-build-2022
1010
ms.topic: overview
11-
ms.date: 07/13/2022
11+
ms.date: 03/24/2023
1212
ms.author: lajanuar
1313
recommendations: false
1414
---
1515
# What is Document Translation?
1616

1717
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.
1818

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-
2519
## Document Translation key features
2620

2721
| Feature | Description |
@@ -48,37 +42,37 @@ You can add Document Translation to your applications using the REST API or a cl
4842

4943
## Get started
5044

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).
5246

5347
> [!div class="nextstepaction"]
5448
> [Start here](get-started-with-document-translation.md "Learn how to use Document Translation with HTTP REST")
5549
5650
## Supported document formats
5751

58-
The following document file types are supported by Document Translation:
52+
Document Translation supports the following document file types:
5953

6054
| File type| File extension|Description|
6155
|---|---|--|
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.|
6559
|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.|
73-
|OpenDocument Presentation|odp|An open-source presentation file.|
74-
|OpenDocument Spreadsheet|ods|An open-source spreadsheet file.|
75-
|Rich Text Format|rtf|A text document containing formatting.|
76-
|Tab Separated Values/TAB|tsv/tab| A tab-delimited raw-data file used by spreadsheet programs.|
77-
|Text|txt| An unformatted text document.|
60+
|Markdown| `markdown`, `mdown`, `mkdn`, `md`, `mkd`, `mdwn`, `mdtxt`, `mdtext`, `rmd`| A lightweight markup language for creating formatted text.|
61+
|M​HTML|`mthml`, `mht`| A web page archive format used to combine HTML code and its companion resources.|
62+
|Microsoft Excel|`xls`, `xlsx`|A spreadsheet file for data analysis and documentation.|
63+
|Microsoft Outlook|`msg`|An email message created or saved within Microsoft Outlook.|
64+
|Microsoft PowerPoint|`ppt`, `pptx`| A presentation file used to display content in a slideshow format.|
65+
|Microsoft Word|`doc`, `docx`| A text document file.|
66+
|OpenDocument Text|`odt`|An open-source text document file.|
67+
|OpenDocument Presentation|`odp`|An open-source presentation file.|
68+
|OpenDocument Spreadsheet|`ods`|An open-source spreadsheet file.|
69+
|Rich Text Format|`rtf`|A text document containing formatting.|
70+
|Tab Separated Values/TAB|`tsv`/`tab`| A tab-delimited raw-data file used by spreadsheet programs.|
71+
|Text|`txt`| An unformatted text document.|
7872

7973
### Legacy file types
8074

81-
Source file types will be preserved during the document translation with the following **exceptions**:
75+
Source file types are preserved during the document translation with the following **exceptions**:
8276

8377
| Source file extension | Translated file extension|
8478
| --- | --- |
@@ -88,13 +82,13 @@ Source file types will be preserved during the document translation with the fol
8882

8983
## Supported glossary formats
9084

91-
The following glossary file types are supported by Document Translation:
85+
Document Translation supports the following glossary file types:
9286

9387
| File type| File extension|Description|
9488
|---|---|--|
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.|
9892

9993
## Next steps
10094

0 commit comments

Comments
 (0)