Product: PowerShell Universal
Version: 5.0.6
Hi all,
I’ll start with some environment info - we are running PSU in a nested IIS10 configuration on a Windows server. The application pool and application were set up with the applicable setup guides for v5. We use a nested folder structure of {...}\inetpub\<version>\
acting as the version root folder, with bin
and data
folders underneath. Anonymous authentication is enabled at the global level within IIS, as well as for the site version we are using.
I’m having some issues when I’m running various scripts from within PSU, of any level of complexity. I have yet to get any call that references a PSU cmdlet, such as Invoke-PSUScript
or Get-PSUFolder
. Every time I try to run these commands, with various parameters included or excluded, I am met with the following gRPC error:
Status(StatusCode="Internal", Detail="Bad gRPC response. HTTP status code: 400")
Take the following, for example. I have an event hub, EH_MDM
, with a single connected computer. The agent logs on the connected computer are showing the connection successful, and the connection shows up within the event hub connections themselves. Therefore I am led to believe the connection is good.
Now, when I attempt to run the following command from within a script:
$Connections = Get-PSUEventHubConnection
I get the above gRPC error. I have tried with various combinations of passing app tokens, a computer name, and the -TrustCertificate
flag (even though we have adjusted this behavior with the environment variable $env:PSU_TRUST_CERTIFICATE = $true
). None of these options offer any different error codes or more information.
As I stated prior, this also happens when attempting to access any PSU resource from within a PSU script. This is causing us to not be able to invoke scripts from within our apps, or otherwise structure our application modularly. I have yet to get one of these commands to work since 5.0.1, and have tested on 5.0.1, 5.0.4, 5.0.5, and now 5.0.6. For contextual reasons while looking through the forums, I’ve noticed people mentioning their Invoke-PSUScript
behavior is as is expected (in examples such as this), so I am assuming that it is a configuration mistake I have made.
Tl;dr: I’m looking for any help I can find to get our intersite scripts and commands to stop giving this gRPC error. Is there some IIS configuration I may be missing? As I stated prior the setup was done right along with the relevant guides. I’m not even sure where to begin looking. Any help is appreciated!
ZG