Skip to content

Commit

Permalink
Merge pull request #1 from cocallaw/PrereqCheck
Browse files Browse the repository at this point in the history
Add Check for Az.DesktopVirtualization
  • Loading branch information
cocallaw committed Aug 23, 2020
2 parents 592bbb2 + 8603e5e commit 2d846d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Start-WVDHostToARM.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ $LoadScriptPath = ".\VMScripts\Load-WVDAgents.ps1"
$UpdateScriptPath = ".\VMScripts\Update-WVDAgents.ps1"
$OperationsScriptPath = ".\VMScripts\Run-WVDHostOperations.ps1"

#Check for support Az Powershell Version
Write-Host "Checking Powershell for Az.DesktopVirtualization Module"
if (Get-Module -ListAvailable -Name Az.DesktopVirtualization) {
Write-Host "Az.DesktopVirtualization Module exists"
} else {
Write-Host "Az.DesktopVirtualization module not found please update your version of Azure Powershell. More Info: aka.ms/azps"
break
}

#Get VMs that are to be updated
if (($HostVMName.Length -eq 0)) {
$HVM = Get-AzVM -ResourceGroupName $HostVMRG
Expand Down

0 comments on commit 2d846d2

Please sign in to comment.