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/operator-service-manager/how-to-create-user-assigned-managed-identity.md
+38-33Lines changed: 38 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
title: How to create and assign User Assigned Managed Identity in Azure Operator Service Manager
3
3
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
7
7
ms.topic: how-to
8
8
ms.service: azure-operator-service-manager
9
9
---
@@ -16,6 +16,9 @@ In this how-to guide, you learn how to:
16
16
17
17
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.
18
18
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
+
19
22
## Prerequisites
20
23
21
24
- 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
24
27
25
28
- 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.
26
29
27
-
## Create a User Assigned Managed Identity
30
+
## Create a UAMI
28
31
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.
30
33
31
-
## Assign custom role
34
+
## Assign custom role to UAMI
32
35
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.
34
37
35
38
### Choose scope for assigning custom role
36
39
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:
40
41
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)
44
43
- All the Network Function Definition Groups and Versions.
45
-
46
44
- All the Network Service Design Groups and Versions.
47
-
48
45
- All the Configuration Group Schemas.
46
+
- All the custom locations.
49
47
50
-
The custom role permissions limit access to the list of the permissions shown here:
If using a parent resource scope approach, then the required permissions would be applied to the parent resource.
61
67
62
68
> [!NOTE]
63
69
> Do not provide write or delete access to any of these publisher resources.
64
70
65
71
### Assign custom role
66
72
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.
68
74
69
75
2. In the side menu of this item, select **Access Control (IAM)**.
70
76
@@ -80,27 +86,26 @@ The custom role permissions limit access to the list of the permissions shown he
80
86
81
87
:::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":::
82
88
83
-
84
-
7. Select **Review and assign**.
89
+
6. Select **Review and assign**.
85
90
86
91
### Repeat the role assignment
87
92
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.
89
94
90
95
## Assign Managed Identity Operator role to the Managed Identity itself
91
96
92
97
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.
96
101
:::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":::
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.
104
109
105
110
:::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":::
0 commit comments