Skip to content

Commit 5481a4c

Browse files
authored
Update apply-windows-license.md
changed '?' into 'Where-Object' and 'select' into 'Select-Object' for readability & Powershell script convention 😊 changed 'Get-AzVM -ResourceGroup' into 'Get-AzVM -ResourceGroupName' ==> new parameter name from Get-AzVm (https://docs.microsoft.com/en-us/powershell/module/az.compute/get-azvm?view=azps-3.4.0)
1 parent f4fe262 commit 5481a4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/virtual-desktop/apply-windows-license.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Update-AzVM -ResourceGroupName <resourceGroupName> -VM $vm
3333
## Verify your session host VM is utilizing the licensing benefit
3434
After deploying your VM, run this cmdlet ot verify the license type:
3535
```powershell
36-
Get-AzVM -ResourceGroup <resourceGroupName> -Name <vmName>
36+
Get-AzVM -ResourceGroupName <resourceGroupName> -Name <vmName>
3737
```
3838

3939
A session host VM with the applied Windows license will show you something like this:
@@ -56,5 +56,5 @@ Run the following cmdlet to see a list of all session host VMs that have the Win
5656

5757
```powershell
5858
$vms = Get-AzVM
59-
$vms | ?{$_.LicenseType -like "Windows_Client"} | select ResourceGroupName, Name, LicenseType
60-
```
59+
$vms | Where-Object {$_.LicenseType -like "Windows_Client"} | Select-Object ResourceGroupName, Name, LicenseType
60+
```

0 commit comments

Comments
 (0)