Closed JCallPut closed 4 months ago
https://pspas.pspete.dev/docs/troubleshooting/#manual-api-command-testing Follow the troubleshooting guide to confirm if this persists outside the module.
Running same code against DEV environment returned result in sub-second, so not a code issue.
So sounds like an environment issue / not related to the module
No recent update, closing as does not appear related to the module code
Getting account details using following snippet: $testAccDetails=Get-PASAccountDetail -id $Acc.id
$Acc is actual account object.
Problem is, each run of this code takes between 1 and 6 minutes, even though similar actions via PVWA are in seconds.
Pinpointed this issue to the following psPAS code section: $APIResponse = Invoke-WebRequest @PSBoundParameters -ErrorAction Stop
Tried to add $ProgressPreference = 'SilentlyContinue' right before invoke-webrequest to no avail.
Code works, but unacceptably slow. Unrelated to backend performance.
Expected behavior Performance matching or exceeding PVWA.
Your Environment