external help file | Module Name | online version | schema |
---|---|---|---|
Az.Avd-help.xml |
Az.Avd |
2.0.0 |
Removing sessionhosts from an Azure Virtual Desktop hostpool.
Remove-AvdSessionhost -HostpoolName <String> -ResourceGroupName <String> -SessionHostName <String>
[<CommonParameters>]
The function will search for sessionhosts and will remove them from the Azure Virtual Desktop hostpool.
Remove-AvdSessionhost -HostpoolName avd-hostpool-personal -ResourceGroupName rg-avd-01 -SessionHostName avd-host-1.wvd.domain
Enter the WVD Hostpool name
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Enter the WVD Hostpool resourcegroup name
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Enter the sessionhosts name
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.