Skip to content

Commit 91a0edc

Browse files
authored
Merge pull request #84061 from cynthn/patch-295
Update dedicated-hosts-powershell.md
2 parents 22e0e31 + 8c81c11 commit 91a0edc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

articles/virtual-machines/windows/dedicated-hosts-powershell.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,18 @@ ms.author: cynthn
2020

2121
This article guides you through how to create an Azure [dedicated host](dedicated-hosts.md) to host your virtual machines (VMs).
2222

23-
Make sure that you have installed Azure PowerShell version 2.4.2 or later, and you are signed in to an Azure account in with `Connect-AzAccount`.
23+
Make sure that you have installed Azure PowerShell version 2.4.2 or later, and you are signed in to an Azure account in with `Connect-AzAccount`. To install version 2.4.2, open a PowerShell prompt and type:
24+
25+
```powershell
26+
Install-Module -Name Az.Compute -Repository PSGallery -RequiredVersion 2.4.2-preview -AllowPrelease
27+
```
28+
29+
You will need at least version 1.6.0 of the PowerShellGet module to enable preview module functionality in PowerShell. The latest versions of PowerShell Core have this automatically built in, but for older versions of PowerShell, you can run the following command to update to the latest version:
30+
31+
```powershell
32+
Install-Module -Name PowerShellGet -Repository PSGallery -Force
33+
```
34+
2435

2536
> [!IMPORTANT]
2637
> Azure Dedicated Hosts is currently in public preview.

0 commit comments

Comments
 (0)