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) 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.
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
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,6 @@ recommendations: false
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.
0 commit comments