Skip to content

Commit 95fe0cd

Browse files
authored
Update formatting of scripts 🦭
1 parent 67ea543 commit 95fe0cd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/update-manager/includes/pre-post-prerequisites.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: SnehaSudhir
33
ms.author: sudhirsneha
44
ms.topic: include
5-
ms.date: 12/07/2023
5+
ms.date: 09/24/2024
66
---
77

88

@@ -22,24 +22,24 @@ ms.date: 12/07/2023
2222
Use PowerShell cmdlet [New-AzRoleAssignment](/powershell/module/az.resources/new-azroleassignment) to assign a role to the system-assigned managed identity.
2323

2424
```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"
2929
```
3030
3131
Assign a role to a user-assigned managed identity.
3232
3333
```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"
3838
```
3939
For the system-assigned managed identity, show `ClientId` and record the value for later use.
4040
4141
```powershell
42-
$UAMI.ClientId
42+
$UAMI.ClientId
4343
```
4444
---
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

Comments
 (0)