Skip to content

Commit 98f73af

Browse files
committed
add tip to sas article
1 parent 0dc52a4 commit 98f73af

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
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) enable 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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ recommendations: false
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 |

0 commit comments

Comments
 (0)