Product: PowerShell Universal
Version: 5.3.0
Looking for any suggestions on this one. I have been setting up an Agent to run a simple EventHub command and am getting this error
$connection = Get-PSUEventHubConnection -Hub RadioBroadcastHub -TrustCertificate -Active
Invoke-PSUCommand -Hub "RadioBroadcastHub" -Command "Get-Process" -ConnectionId $connection.ConnectionId -TrustCertificate
and get this result
Send-PSUEvent: Status(StatusCode="Unknown", Detail="Exception was thrown by handler. HubException: Client failed to parse argument(s).")
I can see the command reach the agent, and in its log it contains the following when I call the above
2025-02-17 19:12:27.057 +11:00 [ERR] Failed to bind arguments received in invocation 'null' of 'RadioBroadcastHubModule'.
System.IO.InvalidDataException: Invocation provides 3 argument(s) but target expects 2.
at Microsoft.AspNetCore.SignalR.Protocol.JsonHubProtocol.BindTypes(Utf8JsonReader& reader, IReadOnlyList`1 paramTypes)
at Microsoft.AspNetCore.SignalR.Protocol.JsonHubProtocol.ParseMessage(ReadOnlySequence`1 input, IInvocationBinder binder)
The commands look identical to those in the training video (https://www.youtube.com/watch?v=BK7XvIMnVss), but for the life of me I cannot think of whats gone wrong