Skip to content

Commit 9ed949e

Browse files
authored
Update how-to-create-user-assigned-managed-identity.md
updates for latest requirements and testing.
1 parent 039f33f commit 9ed949e

File tree

1 file changed

+38
-33
lines changed

1 file changed

+38
-33
lines changed

articles/operator-service-manager/how-to-create-user-assigned-managed-identity.md

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: How to create and assign User Assigned Managed Identity in Azure Operator Service Manager
33
description: Learn how to create and assign a User Assigned Managed Identity in Azure Operator Service Manager.
4-
author: sherrygonz
5-
ms.author: sherryg
6-
ms.date: 10/19/2023
4+
author: msftadam
5+
ms.author: adamdor
6+
ms.date: 6/9/2025
77
ms.topic: how-to
88
ms.service: azure-operator-service-manager
99
---
@@ -16,6 +16,9 @@ In this how-to guide, you learn how to:
1616

1717
The requirement for a User Assigned Managed Identity and the required permissions depend on the Network Service Design (NSD) and must have been communicated to you by the Network Service Designer.
1818

19+
> [!WARNING]
20+
> UAMI is required where an expected SNS operation may run for 4 or more hours. If UAMI isn't used during long running SNS operations, the SNS may report a false failed status before component operations complete.
21+
1922
## Prerequisites
2023

2124
- You must have created a custom role via [Create a custom role](how-to-create-custom-role.md). This article assumes that you named the custom role 'Custom Role - AOSM Service Operator access to Publisher.'
@@ -24,47 +27,50 @@ The requirement for a User Assigned Managed Identity and the required permission
2427

2528
- To perform this task, you need either the 'Owner' or 'User Access Administrator' role over the Network Function Definition Version resource from your chosen Publisher. You also must have a Resource Group over which you have the 'Owner' or 'User Access Administrator' role assignment in order to create the Managed Identity and assign it permissions.
2629

27-
## Create a User Assigned Managed Identity
30+
## Create a UAMI
2831

29-
Create a User Assigned Managed Identity. For details, refer to [Create a User Assigned Managed Identity for your SNS](/azure/active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp).
32+
Firust, create a UAMI. Refer to [Create a User Assigned Managed Identity for your SNS](/azure/active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp) for details.
3033

31-
## Assign custom role
34+
## Assign custom role to UAMI
3235

33-
Assign a custom role to your User Assigned Managed Identity.
36+
Next, assign a custom role to your new UAMI. Choose a scope-based approach and then allow the proper permission across that scope.
3437

3538
### Choose scope for assigning custom role
3639

37-
The publisher resources that you need to assign the custom role to are:
38-
39-
- The Network Function Definition Version(s)
40+
Either assign the custom role individually to a child resources, like a NFDV, or to a parent resource, such as the publisher resource group or Network Function Definition Group (NFDG). Assigning the role to a parent resource grants equal access over all child resources. For proper SNS operations, either the parent resource must include all below resources, or the following resources must be assigned the custom role individually:
4041

41-
You must decide if you want to assign the custom role individually to this NFDV, or to a parent resource such as the publisher resource group or Network Function Definition Group.
42-
43-
Applying to a parent resource grants access over all child resources. For example, applying to the whole publisher resource group gives the managed identity access to:
42+
- All the Network Function Definition Version(s)
4443
- All the Network Function Definition Groups and Versions.
45-
4644
- All the Network Service Design Groups and Versions.
47-
4845
- All the Configuration Group Schemas.
46+
- All the custom locations.
4947

50-
The custom role permissions limit access to the list of the permissions shown here:
51-
52-
- Microsoft.HybridNetwork/Publishers/NetworkFunctionDefinitionGroups/NetworkFunctionDefinitionVersions/**use**/**action**
48+
### Allow proper permissions for the choosen scope
5349

54-
- Microsoft.HybridNetwork/Publishers/NetworkFunctionDefinitionGroups/NetworkFunctionDefinitionVersions/**read**
50+
The UAMI needs the following indivudal permissions to execute required SNS operations:
5551

56-
- Microsoft.HybridNetwork/Publishers/NetworkServiceDesignGroups/NetworkServiceDesignVersions/**use**/**action**
52+
- On the NFDV
53+
- Microsoft.HybridNetwork/publishers/networkFunctionDefinitionGroups/networkFunctionDefinitionVersions/use/**action**
54+
- Microsoft.HybridNetwork/Publishers/NetworkFunctionDefinitionGroups/NetworkFunctionDefinitionVersions/**read**
55+
- On the NSDV
56+
- Microsoft.HybridNetwork/publishers/networkServiceDesignGroups/networkServiceDesignVersions/use/action
57+
- Microsoft.HybridNetwork/publishers/networkServiceDesignGroups/networkServiceDesignVersions/**read**
58+
- On the CGS
59+
- Microsoft.HybridNetwork/Publishers/ConfigurationGroupSchemas/**read**
60+
- On the custom location
61+
- Microsoft.ExtendedLocation/customLocations/deploy/**action**
62+
- Microsoft.ExtendedLocation/customLocations/**read**
63+
- In addition, the UAMI need access on itself
64+
- Microsoft.ManagedIdentity/userAssignedIdentities/assign/**action**
5765

58-
- Microsoft.HybridNetwork/Publishers/NetworkServiceDesignGroups/NetworkServiceDesignVersions/**read**
59-
60-
- Microsoft.HybridNetwork/Publishers/ConfigurationGroupSchemas/**read**
66+
If using a parent resource scope approach, then the required permissions would be applied to the parent resource.
6167

6268
> [!NOTE]
6369
> Do not provide write or delete access to any of these publisher resources.
6470
6571
### Assign custom role
6672

67-
1. Access the Azure portal and open your chosen scope; Publisher Resource Group or Network Function Definition Version.
73+
1. Access the Azure portal and open your chosen resource scope; eg. Publisher Resource Group or Network Function Definition Version.
6874

6975
2. In the side menu of this item, select **Access Control (IAM)**.
7076

@@ -80,27 +86,26 @@ The custom role permissions limit access to the list of the permissions shown he
8086

8187
:::image type="content" source="media/how-to-custom-assign-user-access-managed-identity.png" alt-text="Screenshot showing the add role assignment and select managed identities." lightbox="media/how-to-custom-assign-user-access-managed-identity.png":::
8288

83-
84-
7. Select **Review and assign**.
89+
6. Select **Review and assign**.
8590

8691
### Repeat the role assignment
8792

88-
Repeat the role assignment tasks for all of your chosen scopes.
93+
Repeat the role assignment process for any remaining resources given the chosen scope approach.
8994

9095
## Assign Managed Identity Operator role to the Managed Identity itself
9196

9297
1. Go to the Azure portal and search for **Managed Identities**.
93-
1. Select *identity-for-nginx-sns* from the list of **Managed Identities**.
94-
1. On the side menu, select **Access Control (IAM)**.
95-
1. Choose **Add Role Assignment** and select the **Managed Identity Operator** role.
98+
2. Select *your-identity* from the list of **Managed Identities**.
99+
3. On the side menu, select **Access Control (IAM)**.
100+
4. Choose **Add Role Assignment** and select the **Managed Identity Operator** role.
96101
:::image type="content" source="media/how-to-create-user-assigned-managed-identity-operator.png" alt-text="Screenshot showing the Managed Identity Operator role add role assignment." lightbox="media/how-to-create-user-assigned-managed-identity-operator.png":::
97102

98-
1. Select the **Managed Identity Operator** role.
103+
5. Select the **Managed Identity Operator** role.
99104

100105
:::image type="content" source="media/managed-identity-operator-role-virtual-network-function.png" alt-text="Screenshot showing the Managed Identity Operator role." lightbox="media/managed-identity-operator-role-virtual-network-function.png":::
101106

102-
1. Select **Managed identity**.
103-
1. Select **+ Select members** and navigate to the user-assigned managed identity and proceed with the assignment.
107+
6. Select **Managed identity**.
108+
7. Select **+ Select members** and navigate to the user-assigned managed identity and proceed with the assignment.
104109

105110
:::image type="content" source="media/managed-identity-user-assigned-ubuntu.png" alt-text="Screenshot showing the Add role assignment screen with Managed identity selected." lightbox="media/managed-identity-user-assigned-ubuntu.png":::
106111

0 commit comments

Comments
 (0)