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/applied-ai-services/form-recognizer/managed-identities.md
+26-20Lines changed: 26 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,27 +7,25 @@ manager: nitinme
7
7
ms.service: applied-ai-services
8
8
ms.subservice: forms-recognizer
9
9
ms.topic: how-to
10
-
ms.date: 01/26/2022
10
+
ms.date: 02/22/2022
11
11
ms.author: lajanuar
12
12
ms.custom: ignite-fall-2021
13
13
---
14
14
15
-
# Create and use managed identities with Form Recognizer
15
+
# Managed identities for Form Recognizer
16
16
17
-
> [!IMPORTANT]
18
-
> Azure RBAC (Azure role-based access control) assignment is currently in preview and not recommended for production workloads. Certain features may not be supported or have constrained capabilities. Azure RBAC assignments are used to grant permissions for managed identity.
17
+
Managed identities for Azure resources are service principals that create an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources:
19
18
20
-
## What is managed identity?
19
+
* You can use managed identities to grant access to any resource that supports Azure AD authentication, including your own applications. Unlike security keys and authentication tokens, managed identities eliminate the need for developers to manage credentials.
21
20
22
-
Azure managed identity is a service principal. It creates an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources. You can use a managed identity to grant access to any resource that supports Azure AD authentication. To grant access, assign a role to a managed identity using [Azure RBAC](../../role-based-access-control/overview.md) (Azure role-based access control). There's no added cost to use managed identity in Azure.
21
+
* 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
22
24
-
Managed identity supports both privately and publicly accessible Azure blob storage accounts. For storage accounts with public access, you can opt to use a shared access signature (SAS) to grant limited access. In this article, you'll learn to enable a system-assigned managed identity for your Form Recognizer instance.
23
+
* There's no added cost to use managed identities in Azure.
25
24
26
-
## Private storage account access
27
-
> [!NOTE]
28
-
>
29
-
> Form Recognizer only supports system-assigned managed identities today. User-assigned managed identities is on the roadmap and will be enabled in the near future.
25
+
> [!TIP]
26
+
> Managed identities eliminate the need for you to manage credentials, including Shared Access Signature (SAS) tokens. Managed identities are a safer way to grant access to data without having credentials in your code.
30
27
28
+
## Private storage account access
31
29
32
30
Private Azure storage account access and authentication are supported by [managed identities for Azure resources](../../active-directory/managed-identities-azure-resources/overview.md). If you have an Azure storage account, protected by a Virtual Network (VNet) or firewall, Form Recognizer can't directly access your storage account data. However, once a managed identity is enabled, Form Recognizer can access your storage account using an assigned managed identity credential.
33
31
@@ -45,7 +43,7 @@ To get started, you'll need:
45
43
46
44
* A [**Form Recognizer**](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) or [**Cognitive Services**](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource in the Azure portal. For detailed steps, _see_[Create a Cognitive Services resource using the Azure portal](../../cognitive-services/cognitive-services-apis-create-account.md?tabs=multiservice%2cwindows).
47
45
48
-
* An [**Azure blob storage account**](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM) in the same region as your Form Recognizer resource. You'll create containers to store and organize your blob data within your storage account.
46
+
* An [**Azure blob storage account**](https://portal.azure.com/#create/Microsoft.StorageAccount-ARM) in the same region as your Form Recognizer resource. You'll create containers to store and organize your blob data within your storage account.
49
47
50
48
* If your storage account is behind a firewall, **you must enable the following configuration**: </br></br>
51
49
@@ -62,7 +60,11 @@ To get started, you'll need:
62
60
63
61
## Managed identity assignments
64
62
65
-
There are two types of managed identity: **system-assigned** and **user-assigned**. Currently, Form Recognizer is supported by system-assigned managed identity. A system-assigned managed identity is **enabled** directly on a service instance. It isn't enabled by default; you have to go to your resource and update the identity setting. The system-assigned managed identity is tied to your resource throughout its lifecycle. If you delete your resource, the managed identity will be deleted as well.
63
+
There are two types of managed identity: **system-assigned** and **user-assigned**. Currently, Form Recognizer supports system-assigned managed identity:
64
+
65
+
* A system-assigned managed identity is **enabled** directly on a service instance. It isn't enabled by default; you must go to your resource and update the identity setting.
66
+
67
+
* The system-assigned managed identity is tied to your resource throughout its lifecycle. If you delete your resource, the managed identity will be deleted as well.
66
68
67
69
In the following steps, we'll enable a system-assigned managed identity and grant Form Recognizer limited access to your Azure blob storage account.
68
70
@@ -82,6 +84,10 @@ In the following steps, we'll enable a system-assigned managed identity and gran
82
84
83
85
1. In the main window, toggle the **System assigned Status** tab to **On**.
84
86
87
+
## Grant access to your storage account
88
+
89
+
You need to grant Form Recognizer access to your storage account before it can create, read, or delete blobs. Now that you've enabled Form Recognizer with a system-assigned managed identity, you can use Azure role-based access control (Azure RBAC), to give Form Recognizer access to Azure storage. The **Storage Blob Data Reader** role gives Form Recognizer (represented by the system-assigned managed identity) read and list access to the blob container and data.
90
+
85
91
1. Under **Permissions** select **Azure role assignments**:
@@ -94,14 +100,14 @@ In the following steps, we'll enable a system-assigned managed identity and gran
94
100
>
95
101
> If you're unable to assign a role in the Azure portal because the Add > Add role assignment option is disabled or you get the permissions error, "you do not have permissions to add role assignment at this scope", check that you're currently signed in as a user with an assigned a role that has Microsoft.Authorization/roleAssignments/write permissions such as Owner or User Access Administrator at the Storage scope for the storage resource.
96
102
97
-
7. Next, you're going to assign a **Storage Blob Data Reader** role to your Form Recognizer service resource. In the **Add role assignment** pop-up window complete the fields as follows and select **Save**:
103
+
1. Next, you're going to assign a **Storage Blob Data Reader** role to your Form Recognizer service resource. In the **Add role assignment** pop-up window complete the fields as follows and select **Save**:
98
104
99
105
| Field | Value|
100
106
|------|--------|
101
-
|**Scope**|***Storage***|
102
-
|**Subscription**|***The subscription associated with your storage resource***.|
103
-
|**Resource**|***The name of your storage resource***|
104
-
|**Role**|***Storage Blob Data Reader***—allows for read access to Azure Storage blob containers and data.|
107
+
|**Scope**|**_Storage_**|
108
+
|**Subscription**|**_The subscription associated with your storage resource_**.|
109
+
|**Resource**|**_The name of your storage resource_**|
110
+
|**Role**|**_Storage Blob Data Reader_**—allows for read access to Azure Storage blob containers and data.|
105
111
106
112
:::image type="content" source="media/managed-identities/add-role-assignment-window.png" alt-text="Screenshot: add role assignments page in the Azure portal.":::
107
113
@@ -113,9 +119,9 @@ In the following steps, we'll enable a system-assigned managed identity and gran
113
119
114
120
:::image type="content" source="media/managed-identities/assigned-roles-window.png" alt-text="Screenshot: Azure role assignments window.":::
115
121
116
-
That's it! You've completed the steps to enable a system-assigned managed identity. With this identity credential, you can grant Form Recognizer-specific access rights to documents and files stored in your BYOS account.
122
+
That's it! You've completed the steps to enable a system-assigned managed identity. With managed identity and Azure RBAC, you granted Form Recognizerspecific access rights to your storage resource without having to manage credentials such as SAS tokens.
> [Access Azure Storage form a web app using managed identities](/azure/app-service/scenario-secure-app-access-storage?toc=/azure/applied-ai-services/form-recognizer/toc.json&bc=/azure/applied-ai-services/form-recognizer/breadcrumb/toc.json)
Copy file name to clipboardExpand all lines: articles/cognitive-services/Translator/document-translation/managed-identity.md
+34-22Lines changed: 34 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,32 @@
1
1
---
2
-
title: Create and use managed identity
2
+
title: Create and use managed identities for Document Translation
3
3
titleSuffix: Azure Cognitive Services
4
-
description: Understand how to create and use managed identity in the Azure portal
4
+
description: Understand how to create and use managed identities in the Azure portal
5
5
author: laujan
6
6
manager: nitinme
7
7
ms.service: cognitive-services
8
8
ms.subservice: translator-text
9
9
ms.topic: how-to
10
-
ms.date: 09/09/2021
10
+
ms.date: 02/22/2022
11
11
ms.author: lajanuar
12
12
---
13
13
14
-
# Create and use managed identity
14
+
# Managed identities for Document Translation
15
15
16
16
> [!IMPORTANT]
17
17
>
18
-
> Managed identity for Document Translation is currently unavailable in the global region. If you intend to use managed identity for Document Translation operations, [create your Translator resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) in a non-global Azure region.
18
+
> Managed identities for Azure resources are currently unavailable for Document Translation service 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.
19
19
20
-
## What is managed identity?
20
+
Managed identities for Azure resources are service principals that create an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources:
21
21
22
-
Azure managed identity is a service principal that creates an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources. You can use a managed identity to grant access to any resource that supports Azure AD authentication. To grant access, assign a role to a managed identity using [Azure role-based access control](../../../role-based-access-control/overview.md) (Azure RBAC). There is no added cost to use managed identity in Azure.
22
+
*You can use managed identities to grant access to any resource that supports Azure AD authentication, including your own applications. Unlike security keys and authentication tokens, managed identities eliminate the need for developers to manage credentials.
23
23
24
-
Managed identity supports both privately and publicly accessible Azure blob storage accounts. For storage accounts **with public access**, you can opt to use a shared access signature (SAS) to grant limited access. In this article, we will examine how to manage access to translation documents in your Azure blob storage account using system-assigned managed identity.
24
+
* 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).
25
+
26
+
* There's no added cost to use managed identities in Azure.
27
+
28
+
> [!TIP]
29
+
> Managed identities eliminate the need for you to manage credentials, including Shared Access Signature (SAS) tokens. Managed identities are a safer way to grant access to data without having credentials in your code.
25
30
26
31
## Prerequisites
27
32
@@ -43,17 +48,21 @@ To get started, you'll need:
43
48
* In the main window, select **Allow access from Selected networks**.
44
49
:::image type="content" source="../media/managed-identities/firewalls-and-virtual-networks.png" alt-text="Screenshot: Selected networks radio button selected.":::
45
50
46
-
* On the selected networks page navigate to the **Exceptions** category and make certain that the [**Allow Azure services on the trusted services list to access this storage account**](../../../storage/common/storage-network-security.md?tabs=azure-portal#manage-exceptions) checkbox is enabled.
51
+
* On the selected networks page, navigate to the **Exceptions** category and make certain that the [**Allow Azure services on the trusted services list to access this storage account**](../../../storage/common/storage-network-security.md?tabs=azure-portal#manage-exceptions) checkbox is enabled.
There are two types of managed identities: **system-assigned** and **user-assigned**. Currently, Document Translation supports system-assigned managed identities:
51
58
52
-
There are two types of managed identity: **system-assigned** and **user-assigned**. Currently, Document Translation is supported by system-assigned managed identity. A system-assigned managed identity is **enabled** directly on a service instance. It is not enabled by default; you must go to your resource and update the identity setting. The system-assigned managed identity is tied to your resource throughout its lifecycle. If you delete your resource, the managed identity will be deleted as well.
59
+
* A system-assigned managed identity is **enabled** directly on a service instance. It isn't enabled by default; you must go to your resource and update the identity setting.
60
+
61
+
* The system-assigned managed identity is tied to your resource throughout its lifecycle. If you delete your resource, the managed identity will be deleted as well.
53
62
54
63
In the following steps, we'll enable a system-assigned managed identity and grant your Translator resource limited access to your Azure blob storage account.
55
64
56
-
## Enable a system-assigned managed identity using the Azure portal
65
+
## Enable a system-assigned managed identity
57
66
58
67
>[!IMPORTANT]
59
68
>
@@ -69,6 +78,12 @@ In the following steps, we'll enable a system-assigned managed identity and gran
69
78
70
79
1. In the main window, toggle the **System assigned Status** tab to **On**.
71
80
81
+
## Grant access to your storage account
82
+
83
+
You need to grant Translator access to your storage account before it can create, read, or delete blobs. Now that you enabled Translator with a system-assigned managed identity, you can use Azure role-based access control (Azure RBAC), to give Translator access to Azure storage.
84
+
85
+
The **Storage Blob Data Contributor** role gives Translator (represented by the system-assigned managed identity) read, write, and delete access to the blob container and data.
86
+
72
87
1. Under **Permissions** select **Azure role assignments**:
@@ -85,27 +100,24 @@ In the following steps, we'll enable a system-assigned managed identity and gran
85
100
86
101
| Field | Value|
87
102
|------|--------|
88
-
|**Scope**|***Storage***.|
89
-
|**Subscription**|***The subscription associated with your storage resource***.|
90
-
|**Resource**|***The name of your storage resource***.|
91
-
|**Role**|***Storage Blob Data Contributor***.|
103
+
|**Scope**|**_Storage_**.|
104
+
|**Subscription**|**_The subscription associated with your storage resource_**.|
105
+
|**Resource**|**_The name of your storage resource_**.|
106
+
|**Role**|**_Storage Blob Data Contributor_**.|
92
107
93
108
:::image type="content" source="../media/managed-identities/add-role-assignment-window.png" alt-text="Screenshot: add role assignments page in the Azure portal.":::
94
109
95
-
1. After you've received the _Added Role assignment_ confirmation message, refresh the page to see the added role assignment.
110
+
1. After you've received the _Added Role assignment_ confirmation message, refresh the page to see the added role assignment.
96
111
97
112
:::image type="content" source="../media/managed-identities/add-role-assignment-confirmation.png" alt-text="Screenshot: Added role assignment confirmation pop-up message.":::
98
113
99
114
1. If you don't see the change right away, wait and try refreshing the page once more. When you assign or remove role assignments, it can take up to 30 minutes for changes to take effect.
100
115
101
116
:::image type="content" source="../media/managed-identities/assigned-roles-window.png" alt-text="Screenshot: Azure role assignments window.":::
102
117
103
-
Great! You have completed the steps to enable a system-assigned managed identity. With this identity credential, you can grant Translator specific access rights to your storage resource.
118
+
Great! You've completed the steps to enable a system-assigned managed identity. With managed identity and Azure RBAC, you granted Translator specific access rights to your storage resource without having to manage credentials such as SAS tokens.
104
119
105
120
## Next steps
106
121
107
122
> [!div class="nextstepaction"]
108
-
> [Managed identities for Azure resources: frequently asked questions](../../../active-directory/managed-identities-azure-resources/managed-identities-faq.md)
109
-
110
-
> [!div class="nextstepaction"]
111
-
>[Use managed identities to acquire an access token](../../../app-service/overview-managed-identity.md?tabs=dotnet#configure-target-resource)
123
+
> [Access Azure Storage from a web app using managed identities](/azure/app-service/scenario-secure-app-access-storage?toc=/azure/cognitive-services/translator/toc.json&bc=/azure/cognitive-services/translator/breadcrumb/toc.json)
0 commit comments