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/update-manager/includes/pre-post-prerequisites.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
author: SnehaSudhir
3
3
ms.author: sudhirsneha
4
4
ms.topic: include
5
-
ms.date: 12/07/2023
5
+
ms.date: 09/24/2024
6
6
---
7
7
8
8
@@ -22,24 +22,24 @@ ms.date: 12/07/2023
22
22
Use PowerShell cmdlet [New-AzRoleAssignment](/powershell/module/az.resources/new-azroleassignment) to assign a role to the system-assigned managed identity.
23
23
24
24
```powershell
25
-
New-AzRoleAssignment `
26
-
-ObjectId $SA_PrincipalId `
27
-
-ResourceGroupName $resourceGroup `
28
-
-RoleDefinitionName "Contributor"
25
+
New-AzRoleAssignment `
26
+
-ObjectId $SA_PrincipalId `
27
+
-ResourceGroupName $resourceGroup `
28
+
-RoleDefinitionName "Contributor"
29
29
```
30
30
31
31
Assign a role to a user-assigned managed identity.
32
32
33
33
```powershell
34
-
New-AzRoleAssignment `
35
-
-ObjectId $UAMI.PrincipalId`
36
-
-ResourceGroupName $resourceGroup `
37
-
-RoleDefinitionName "Contributor"
34
+
New-AzRoleAssignment `
35
+
-ObjectId $UAMI.PrincipalId`
36
+
-ResourceGroupName $resourceGroup `
37
+
-RoleDefinitionName "Contributor"
38
38
```
39
39
For the system-assigned managed identity, show `ClientId` and record the value for later use.
40
40
41
41
```powershell
42
-
$UAMI.ClientId
42
+
$UAMI.ClientId
43
43
```
44
44
---
45
-
3. Import the `Az.ResourceGraph` module, ensure the module is updated to ThreadJob with the module version 2.0.3.
45
+
3. Import the `Az.ResourceGraph` module, ensure the module is updated to ThreadJob with the module version 2.0.3.
0 commit comments