Skip to content

Commit 7773ba2

Browse files
Merge pull request #124487 from wjpigott/patch-6
Update pre-post-prerequisites.md
2 parents a0215bf + 1e0067c commit 7773ba2

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ ms.date: 09/24/2024
99

1010
## Prerequisites
1111

12-
1. Ensure that you are using PowerShell **7.2** runbook.
13-
2. Assign permission to managed identities - You can assign permissions to the appropriate [managed identity](../../automation/automation-security-overview.md#managed-identities). The runbook can use either the Automation account system-assigned managed identity or a user-assigned managed identity.
12+
1. Ensure that you're using PowerShell **7.4** runbook.
13+
2. Assign permission to managed identities. You can assign permissions to the appropriate [managed identity](../../automation/automation-security-overview.md#managed-identities). The runbook can use either the Automation account system-assigned managed identity or a user-assigned managed identity.
14+
15+
For the script examples below (Start VMs and Stop VMs), the Virtual Machine Contributor role is required or a Custom Role with these specific permissions:
16+
17+
- Microsoft.Compute/virtualMachines/start/action
18+
- Microsoft.Compute/virtualMachines/deallocate/action
19+
- Microsoft.Compute/virtualMachines/restart/action
20+
- Microsoft.Compute/virtualMachines/powerOff/action
1421

1522
You can use either portal or PowerShell cmdlets to assign permissions to each identity:
1623

@@ -28,7 +35,7 @@ ms.date: 09/24/2024
2835
-ResourceGroupName $resourceGroup `
2936
-RoleDefinitionName "Contributor"
3037
```
31-
38+
3239
Assign a role to a user-assigned managed identity.
3340
3441
```powershell
@@ -38,9 +45,10 @@ ms.date: 09/24/2024
3845
-RoleDefinitionName "Contributor"
3946
```
4047
For the system-assigned managed identity, show `ClientId` and record the value for later use.
41-
48+
4249
```powershell
4350
$UAMI.ClientId
4451
```
4552
---
53+
4654
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)