@Jesse.Peden - Thanks for the suggestion!
I have an app token with admin role assigned, and created 2 files:
- TestSource.ps1
- TestTarget.ps1
In TestSource.ps1 I have:
Connect-PSUServer -AppToken $Secret:AppToken -ComputerName "https://psu-server-name"
Invoke-PSUScript -Name "TestTarget.ps1" -Parameters @{ FullName = "Bob Smith" }
In TestTarget.ps1 I have:
param (
[Parameter(Mandatory = $true)]
[string]$FullName
)
Write-Output $FullName
When I run TestSource.ps1 in PSU, I still get the same error:
Cannot retrieve the dynamic parameters for the cmdlet. Status(StatusCode=“Internal”, Detail=“Bad gRPC response. HTTP status code: 400”)
Output from TestSource.ps1:
Mode : Server
Username : username
OneWayGitSync : False
ManualGitMode : False
Roles : {Administrator}
BuiltInRole : True
Cannot retrieve the dynamic parameters for the cmdlet. Status(StatusCode="Internal", Detail="Bad gRPC response. HTTP status code: 400")
at <ScriptBlock>, C:\ProgramData\UniversalAutomation\Repository\Test\TestSource.ps1: line 3
at <ScriptBlock>, <No file>: line 1
I get the same “Bad gRPC response” error if I update TestSource.ps1 to be:
Connect-PSUServer -AppToken $Secret:AppToken -ComputerName "https://psu-server-name"
Get-PSUComputer
I also get the same error if I run just Get-PSUComputer from both PS 7 and PS 5 terminals in PSU:
Get-PSUComputer
[ERROR] Status(StatusCode="Internal", Detail="Bad gRPC response. HTTP status code: 400")
Does the Connect-PSUServer need to be added anywhere else, or any other configuration/settings I should look at?
Thank you.