Invoke-RASAVDHost
SYNOPSIS
The cmdlet invoke a command on an object of type Azure Virtual Desktop Host.
SYNTAX
Invoke-RASAVDHost [-InputObject] <AVDHost> [[-SiteId] <uint>] -Command {CancelSchedule}
[<CommonParameters>]Invoke-RASAVDHost [[-SiteId] <uint>] -Command {CancelSchedule} [-ProviderId <uint>]
[<CommonParameters>]Invoke-RASAVDHost [-VMId] <string> [[-SiteId] <uint>] -Command {CancelSchedule} -ProviderId <uint>
[<CommonParameters>]DESCRIPTION
The cmdlet invoke a command on an object of type Azure Virtual Desktop Host.
EXAMPLES
Example 1
Invoke-RASAVDHost -VMID "42311235-09c5-ca15-337d-b9723015edf0" -ProviderID 1 -Command CancelScheduleInvokes CancelSchedule command on the AVD Host properties specified by the VMId and ProviderId.
Example 2
Invokes CancelSchedule command on all the AVD Hosts found within the Provider with Id 1.
PARAMETERS
-VMId
The ID of the VM for which to retrieve the information.
-ProviderId
Provider Id from which to retrieve the AVD Host.
-SiteId
Site ID from which to retrieve the AVD Host.
If the parameter is omitted, the Licensing Server site ID will be used.
-InputObject
The AVD Host info object.
Type reference: AVDHost
-Command
Command.
Accepted values: CancelSchedule.
Possible values: CancelSchedule
Type reference: AVDCommand
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
AVDHost
OUTPUTS
None
RELATED LINKS
Last updated