Skip to content

Commit 02dc717

Browse files
authored
Merge pull request #301085 from msftadam/patch-76
Update how-to-create-user-assigned-managed-identity.md
2 parents 1543d6e + a26ad7c commit 02dc717

File tree

1 file changed

+45
-42
lines changed

1 file changed

+45
-42
lines changed

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

Lines changed: 45 additions & 42 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
---
@@ -12,59 +12,63 @@ ms.service: azure-operator-service-manager
1212

1313
In this how-to guide, you learn how to:
1414
- Create a User Assigned Managed Identity (UAMI) for your Site Network Service (SNS).
15-
- Assign that User Assigned Managed Identity permissions.
15+
- Assign that User Assigned Managed Identity permissions for use by Azure Operator Service Manager (AOSM)
1616

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.
17+
> [!WARNING]
18+
> 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.
1819
1920
## Prerequisites
2021

21-
- 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.'
22+
- You must create 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.'
2223

23-
- Your Network Service Designer must have told you which other permissions your Managed Identity requires and which Network Function Definition Version (NFDV) your SNS uses.
24+
- You must work with your Network Service Designer to understand the permissions your Managed Identity requires and which Network Function Definition Version (NFDV) your SNS uses.
2425

25-
- 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+
- 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.
2627

27-
## Create a User Assigned Managed Identity
28+
## Create a UAMI
2829

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).
30+
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.
3031

31-
## Assign custom role
32+
## Assign custom role to UAMI
3233

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

3536
### Choose scope for assigning custom role
3637

37-
The publisher resources that you need to assign the custom role to are:
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:
3839

39-
- The Network Function Definition Version(s)
40+
- All the Network Function Definition Versions (NSDV).
41+
- All the Network Function Definition Groups (NFDG) and Versions
42+
- All the Network Service Design Groups (NSD) and Versions.
43+
- All the Configuration Group Schemas (CGS).
44+
- All the custom locations.
4045

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.
46+
### Allow proper permissions for the chosen scope
4247

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:
44-
- All the Network Function Definition Groups and Versions.
48+
The UAMI needs the following individual permissions to execute required SNS operations:
4549

46-
- All the Network Service Design Groups and Versions.
50+
- On the NFDV
51+
- Microsoft.HybridNetwork/publishers/networkFunctionDefinitionGroups/networkFunctionDefinitionVersions/use/**action**
52+
- Microsoft.HybridNetwork/Publishers/NetworkFunctionDefinitionGroups/NetworkFunctionDefinitionVersions/**read**
53+
- On the NSDV
54+
- Microsoft.HybridNetwork/publishers/networkServiceDesignGroups/networkServiceDesignVersions/use/action
55+
- Microsoft.HybridNetwork/publishers/networkServiceDesignGroups/networkServiceDesignVersions/**read**
56+
- On the CGS
57+
- Microsoft.HybridNetwork/Publishers/ConfigurationGroupSchemas/**read**
58+
- On the custom location
59+
- Microsoft.ExtendedLocation/customLocations/deploy/**action**
60+
- Microsoft.ExtendedLocation/customLocations/**read**
61+
- In addition, the UAMI need access on itself
62+
- Microsoft.ManagedIdentity/userAssignedIdentities/assign/**action**
4763

48-
- All the Configuration Group Schemas.
49-
50-
The custom role permissions limit access to the list of the permissions shown here:
51-
52-
- Microsoft.HybridNetwork/Publishers/NetworkFunctionDefinitionGroups/NetworkFunctionDefinitionVersions/**use**/**action**
53-
54-
- Microsoft.HybridNetwork/Publishers/NetworkFunctionDefinitionGroups/NetworkFunctionDefinitionVersions/**read**
55-
56-
- Microsoft.HybridNetwork/Publishers/NetworkServiceDesignGroups/NetworkServiceDesignVersions/**use**/**action**
57-
58-
- Microsoft.HybridNetwork/Publishers/NetworkServiceDesignGroups/NetworkServiceDesignVersions/**read**
59-
60-
- Microsoft.HybridNetwork/Publishers/ConfigurationGroupSchemas/**read**
64+
If using a parent resource scope approach, then the required permissions would be applied to the parent resource.
6165

6266
> [!NOTE]
63-
> Do not provide write or delete access to any of these publisher resources.
67+
> Don't provide write or delete access to any of these publisher resources.
6468
6569
### Assign custom role
6670

67-
1. Access the Azure portal and open your chosen scope; Publisher Resource Group or Network Function Definition Version.
71+
1. Access the Azure portal and open your chosen resource scope; for example, Publisher Resource Group or Network Function Definition Version.
6872

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

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

8185
:::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":::
8286

83-
84-
7. Select **Review and assign**.
87+
6. Select **Review and assign**.
8588

8689
### Repeat the role assignment
8790

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

9093
## Assign Managed Identity Operator role to the Managed Identity itself
9194

9295
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.
96+
2. Select *your-identity* from the list of **Managed Identities**.
97+
3. On the side menu, select **Access Control (IAM)**.
98+
4. Choose **Add Role Assignment** and select the **Managed Identity Operator** role.
9699
:::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":::
97100

98-
1. Select the **Managed Identity Operator** role.
101+
5. Select the **Managed Identity Operator** role.
99102

100103
:::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":::
101104

102-
1. Select **Managed identity**.
103-
1. Select **+ Select members** and navigate to the user-assigned managed identity and proceed with the assignment.
105+
6. Select **Managed identity**.
106+
7. Select **+ Select members** and navigate to the user-assigned managed identity and proceed with the assignment.
104107

105108
:::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":::
106109

0 commit comments

Comments
 (0)