Skip to content

Commit e32fd6c

Browse files
committed
update managed identities articles
1 parent cbd4277 commit e32fd6c

File tree

4 files changed

+54
-35
lines changed

4 files changed

+54
-35
lines changed

articles/applied-ai-services/form-recognizer/managed-identities.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: applied-ai-services
88
ms.subservice: forms-recognizer
99
ms.topic: how-to
10-
ms.date: 01/26/2022
10+
ms.date: 02/22/2022
1111
ms.author: lajanuar
1212
ms.custom: ignite-fall-2021
1313
---
@@ -17,17 +17,22 @@ ms.custom: ignite-fall-2021
1717
> [!IMPORTANT]
1818
> 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.
1919
20-
## What is managed identity?
20+
## What are managed identities?
2121

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.
22+
* Managed identities for Azure resources are service principals that create an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources.
2323

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.
24+
* You can use managed identities **instead of a shared access signature (SAS) token** 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 (Azure RBAC)](../../role-based-access-control/overview.md).
25+
26+
* There's no added cost to use managed identity 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.
2530
2631
## Private storage account access
32+
2733
> [!NOTE]
2834
>
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.
30-
35+
> Form Recognizer only supports system-assigned managed identities today. User-assigned managed identities is on the feature road map and will be enabled in the near future.
3136
3237
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.
3338

@@ -82,6 +87,10 @@ In the following steps, we'll enable a system-assigned managed identity and gran
8287

8388
1. In the main window, toggle the **System assigned Status** tab to **On**.
8489

90+
## Grant access to your storage account
91+
92+
You need to grant Form Recognizer access to your storage account before it can create, read, or delete blobs. Now that you enabled Form Recognizer with a system-assigned managed identity, you can use Azure role-based access control (Azure RBAC), to give a managed identity (Form Recognizer) access to another resource (Azure storage)—just like any security principal. 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.
93+
8594
1. Under **Permissions** select **Azure role assignments**:
8695

8796
:::image type="content" source="media/managed-identities/enable-system-assigned-managed-identity-portal.png" alt-text="Screenshot: enable system-assigned managed identity in Azure portal.":::
@@ -94,14 +103,14 @@ In the following steps, we'll enable a system-assigned managed identity and gran
94103
>
95104
> 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.
96105
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**:
106+
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**:
98107

99108
| Field | Value|
100109
|------|--------|
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.|
110+
|**Scope**| **_Storage_**|
111+
|**Subscription**| **_The subscription associated with your storage resource_**.|
112+
|**Resource**| **_The name of your storage resource_**|
113+
|**Role** | **_Storage Blob Data Reader_**—allows for read access to Azure Storage blob containers and data.|
105114

106115
:::image type="content" source="media/managed-identities/add-role-assignment-window.png" alt-text="Screenshot: add role assignments page in the Azure portal.":::
107116

@@ -113,9 +122,9 @@ In the following steps, we'll enable a system-assigned managed identity and gran
113122

114123
:::image type="content" source="media/managed-identities/assigned-roles-window.png" alt-text="Screenshot: Azure role assignments window.":::
115124

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.
125+
That's it! You've completed the steps to enable a system-assigned managed identity. With managed identity and Azure RBAC, you granted Form Recognizer specific access rights to documents and files stored in your storage resource without having to manage credentials, such as SAS tokens.
117126

118127
## Learn more about managed identity
119128

120129
> [!div class="nextstepaction"]
121-
> [Managed identities for Azure resources: frequently asked questions - Azure AD](../../active-directory/managed-identities-azure-resources/managed-identities-faq.md)
130+
> [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 )

articles/applied-ai-services/form-recognizer/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ items:
152152
items:
153153
- name: Use Form Recognizer with Azure Logic Apps
154154
href: tutorial-logic-apps.md
155+
- name: Use managed identities to access Azure storage
156+
href: /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
155157
- name: "Create Form Recognizer workflows with AI Builder"
156158
expanded: true
157159
items:

articles/cognitive-services/Translator/document-translation/managed-identity.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
---
2-
title: Create and use managed identity
2+
title: Create and use managed identities
33
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
55
author: laujan
66
manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: translator-text
99
ms.topic: how-to
10-
ms.date: 09/09/2021
10+
ms.date: 02/22/2022
1111
ms.author: lajanuar
1212
---
1313

14-
# Create and use managed identity
14+
# Create and use managed identities
1515

1616
> [!IMPORTANT]
1717
>
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 is 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.
1919
20-
## What is managed identity?
20+
## What are managed identities?
2121

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+
* Managed identities for Azure resources are service principals that create an Azure Active Directory (Azure AD) identity and specific permissions for Azure managed resources.
2323

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+
* You can use managed identities **instead of a shared access signature (SAS) tokey** to grant access to any resource that supports Azure AD authentication, including your own applications. To grant access, assign a 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.
2530
2631
## Prerequisites
2732

@@ -43,17 +48,17 @@ To get started, you'll need:
4348
* In the main window, select **Allow access from Selected networks**.
4449
:::image type="content" source="../media/managed-identities/firewalls-and-virtual-networks.png" alt-text="Screenshot: Selected networks radio button selected.":::
4550

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

4853
:::image type="content" source="../media/managed-identities/allow-trusted-services-checkbox-portal-view.png" alt-text="Screenshot: allow trusted services checkbox, portal view":::
4954

50-
## Managed Identity assignments
55+
## Managed identity assignments
5156

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.
57+
There are two types of managed identities: **system-assigned** and **user-assigned**. Currently, Document Translation is supported by system-assigned managed identities. 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. 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.
5358

5459
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.
5560

56-
## Enable a system-assigned managed identity using the Azure portal
61+
## Enable a system-assigned managed identity
5762

5863
>[!IMPORTANT]
5964
>
@@ -69,6 +74,10 @@ In the following steps, we'll enable a system-assigned managed identity and gran
6974

7075
1. In the main window, toggle the **System assigned Status** tab to **On**.
7176

77+
## Grant access to your storage account
78+
79+
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 a managed identity (Translator) access to another resource (Azure storage), just like any security principal. 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.
80+
7281
1. Under **Permissions** select **Azure role assignments**:
7382

7483
:::image type="content" source="../media/managed-identities/enable-system-assigned-managed-identity-portal.png" alt-text="Screenshot: enable system-assigned managed identity in Azure portal.":::
@@ -85,27 +94,24 @@ In the following steps, we'll enable a system-assigned managed identity and gran
8594

8695
| Field | Value|
8796
|------|--------|
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***.|
97+
|**Scope**| **_Storage_**.|
98+
|**Subscription**| **_The subscription associated with your storage resource_**.|
99+
|**Resource**| **_The name of your storage resource_**.|
100+
|**Role** | **_Storage Blob Data Contributor_**.|
92101

93102
:::image type="content" source="../media/managed-identities/add-role-assignment-window.png" alt-text="Screenshot: add role assignments page in the Azure portal.":::
94103

95-
1. After you've received the _Added Role assignment_ confirmation message, refresh the page to see the added role assignment.
104+
1. After you've received the _Added Role assignment_ confirmation message, refresh the page to see the added role assignment.
96105

97106
:::image type="content" source="../media/managed-identities/add-role-assignment-confirmation.png" alt-text="Screenshot: Added role assignment confirmation pop-up message.":::
98107

99108
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.
100109

101110
:::image type="content" source="../media/managed-identities/assigned-roles-window.png" alt-text="Screenshot: Azure role assignments window.":::
102111

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.
112+
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.
104113

105114
## Next steps
106115

107116
> [!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)
117+
> [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)

articles/cognitive-services/Translator/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ items:
6767
href: containers/translator-container-supported-parameters.md
6868
- name: Tutorials
6969
items:
70+
- name: Use managed identities to access Azure storage
71+
href: /azure/app-service/scenario-secure-app-access-storage?toc=/azure/cognitive-services/translator/toc.json&bc=/azure/cognitive-services/translator/breadcrumb/toc.json
7072
- name: Create a Translator workflow
7173
href: /ai-builder/flow-text-translation?toc=/azure/cognitive-services/translator/toc.json&bc=/azure/cognitive-services/translator/breadcrumb/toc.json
7274
- name: Translate text with Translator

0 commit comments

Comments
 (0)