Skip to content

Latest commit

 

History

History
107 lines (81 loc) · 2.22 KB

Get-AvdLatestSessionHost.md

File metadata and controls

107 lines (81 loc) · 2.22 KB
external help file Module Name online version schema
Az.Avd-help.xml
Az.Avd
2.0.0

Get-AvdLatestSessionHost

SYNOPSIS

Gets the latest session host from the AVD Hostpool

SYNTAX

Parameters (Default)

Get-AvdLatestSessionHost -HostpoolName <String> -ResourceGroupName <String> [-NumOnly] [<CommonParameters>]

InputObject

Get-AvdLatestSessionHost -InputObject <PSObject> [<CommonParameters>]

DESCRIPTION

The function will help you getting the latests session host from a AVD Hostpool. By running this function you will able to define the next number for deploying new session hosts.

EXAMPLES

EXAMPLE 1

Get-AvdLatestSessionHost -HostpoolName avd-hostpool -ResourceGroupName avd-resourcegroup

PARAMETERS

-HostpoolName

Enter the AVD Hostpool name

Type: String
Parameter Sets: Parameters
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ResourceGroupName

Enter the AVD Hostpool resourcegroup name

Type: String
Parameter Sets: Parameters
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-NumOnly

With this switch parameter you will set, you will get the next sessionhost number returned.

Type: SwitchParameter
Parameter Sets: Parameters
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-InputObject

You can put the hostpool object in here.

Type: PSObject
Parameter Sets: InputObject
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS