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
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.
@@ -29,13 +30,13 @@ In this how-to guide, you learn how to:
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
+
## Create a custom role and assign to UAMI
33
34
34
-
Next, assign a custom role to your new UAMI. Choose a scope-based approach and then allow the proper permission across that scope.
35
+
Next, create a custom role. Start by considering the best scope-based approach, then create and assign the role to your new UAMI.
35
36
36
-
### Choose scope for assigning custom role
37
+
### Scope considerations for UAMI custom role
37
38
38
-
Either assign the custom role individually to a child resource, like an 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:
39
+
The custom role must be assigned sufficient permissions to access user resources. The custom role can be scoped to individual child resources, like an NFDV, for the most granular control. Or, the custom role can be scope to a parent resource, such as the publisher resource group, which grants equal access over all child resources. For proper operations, either individually or via parent, all below resourcesmust be assigned to the custom role:
39
40
40
41
- All the Network Function Definition Groups (NFDG) and versions.
41
42
- All the Network Function Definition (NFD) and versions.
@@ -47,26 +48,26 @@ Either assign the custom role individually to a child resource, like an NFDV, or
47
48
48
49
The UAMI needs the following individual permissions to execute required SNS operations:
If using a parent resource scope approach, then the required permissions would be applied to the parent resource.
65
66
66
67
> [!NOTE]
67
68
> Don't provide write or delete access to any of these publisher resources.
68
69
69
-
### Assign custom role
70
+
### Assign custom role via portal
70
71
71
72
1. Access the Azure portal and open your chosen resource scope; for example, Publisher Resource Group or Network Function Definition Version.
72
73
@@ -86,11 +87,11 @@ If using a parent resource scope approach, then the required permissions would b
86
87
87
88
6. Select **Review and assign**.
88
89
89
-
### Repeat the role assignment
90
+
####Repeat the role assignment
90
91
91
92
Repeat the role assignment process for any remaining resources given the chosen scope approach.
92
93
93
-
## Assign Managed Identity Operator role to the Managed Identity itself
94
+
###Assign managed identity operator role via portal
94
95
95
96
1. Go to the Azure portal and search for **Managed Identities**.
96
97
2. Select *your-identity* from the list of **Managed Identities**.
@@ -109,6 +110,155 @@ 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
-
114
-
Repeat this process to assign any other permissions to the Managed Identity that your Network Service Designer identified.
113
+
## Create and assign permissions to a UAMI via bicep
114
+
115
+
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 necessary. The following example demonstrates the bicep operations required to establish the UAMI with minimum assigned roles. Expand role assignment, as necessary, based on scope approach.
116
+
117
+
```bicep
118
+
// ----------- MIO Role Definition -----------
119
+
// This role is used to assign the Managed Identity Operator role to the User Assigned Managed Identity (UAMI).
120
+
@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