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
+163-9Lines changed: 163 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,19 @@
1
1
---
2
-
title: How to createand assign User Assigned Managed Identity in Azure Operator Service Manager
3
-
description: Learn how to createand assign a User Assigned Managed Identity in Azure Operator Service Manager.
2
+
title: How to create, assign and use a User Assigned Managed Identity in Azure Operator Service Manager
3
+
description: Learn how to create, assign and use a User Assigned Managed Identity in Azure Operator Service Manager.
4
4
author: msftadam
5
5
ms.author: adamdor
6
6
ms.date: 6/9/2025
7
7
ms.topic: how-to
8
8
ms.service: azure-operator-service-manager
9
9
---
10
10
11
-
# Createand assign a User Assigned Managed Identity
11
+
# Create, assign and use a User Assigned Managed Identity
12
12
13
-
In this how-to guide, you learn how to:
14
-
- Create a User Assigned Managed Identity (UAMI) for your Site Network Service (SNS).
15
-
- Assign that User Assigned Managed Identity permissions for use by Azure Operator Service Manager (AOSM)
13
+
In this how-to guide, you learn to:
14
+
- Create a User Assigned Managed Identity (UAMI) to use with Azure Operator Service Manager (AOSM)
15
+
- Assign a UAMI permissions to access required resources.
16
+
- Use a UAMI when executing network function (NF) or site network service (SNS) operations.
16
17
17
18
> [!WARNING]
18
19
> UAMI is required where an expected SNS operation may run for four 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.
@@ -25,11 +26,11 @@ In this how-to guide, you learn how to:
25
26
26
27
- 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.
27
28
28
-
## Create a UAMI
29
+
## Create a UAMI via portal
29
30
30
31
First, 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.
31
32
32
-
## Assign custom role to UAMI
33
+
## Assign custom role to UAMI via portal
33
34
34
35
Next, assign a custom role to your new UAMI. Choose a scope-based approach and then allow the proper permission across that scope.
35
36
@@ -109,6 +110,159 @@ Repeat the role assignment process for any remaining resources given the chosen
109
110
110
111
Completion of all the tasks outlined in this article ensures that the Site Network Service (SNS) has the necessary permissions to function effectively within the specified Azure environment.
111
112
112
-
## Assign other required permissions to the Managed Identity
113
+
###Assign other required permissions to the Managed Identity
113
114
114
115
Repeat this process to assign any other permissions to the Managed Identity that your Network Service Designer identified.
116
+
117
+
## Create and assign permissions to a UAMI via bicep
118
+
119
+
The required operations to create and assign permissions are also supported via bicep scripting. This approach may work better where automation of these operations within a workflow pipeline is neccesary. The following example demonstrates the bicep operations required to establish the UAMI with minimum assigned roles. It will be neccesary to expand role assignment based on scope approach.
120
+
121
+
```bicep
122
+
// ----------- MIO Role Definition -----------
123
+
// This role is used to assign the Managed Identity Operator role to the User Assigned Managed Identity (UAMI).
124
+
@description('This is the built-in MIO role. See https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#managed-identity-operator')
The NF template must be updated to include the identityObj parameter. The following JSON example demonstrates use of this parameter with a generic NF setup:
The SNS template must be updated to include the identity resource parameter. The following bicep example demonstrates use of this parameter with a generic SNS setup:
0 commit comments