vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
753 stars 603 forks source link

VMware.vSphere.SsoAdmin: Timeout Error When Looking up AD Configured SSO user #482

Open faherne opened 3 years ago

faherne commented 3 years ago

Command: Get-SsoPersonUser -Name "AD-Service-Account-01" -Domain "MyCompany.com"

Error Message: Get-SsoPersonUser: One or more errors occurred. (The request channel timed out attempting to send after 00:00:30. Increase the timeout value passed to the call to request or increase the SendTimeout value on the binding. The time allotted to this operation may have been a portion of a longer timeout.)

dmilov commented 3 years ago

We have to make the timeout configurable or to read it from PowerCLI settings.

faherne commented 2 years ago

Is there anything I can do to help, or is this something that needs to be configured in the SDK?

dmilov commented 2 years ago

Is there anything I can do to help, or is this something that needs to be configured in the SDK?

The timeout is hardcoded at the moment and cannot be changed on the fly from PowerShell. https://github.com/vmware/PowerCLI-Example-Scripts/blob/master/Modules/VMware.vSphere.SsoAdmin/src/VMware.vSphere.SsoAdmin.Client/VMware.vSphere.SsoAdminClient/SsoAdminClient.cs#L28

As a quick fix, I can increase the hardcoded value to 5 minutes, and later to make it either configurable or read it from PowerCLI settings

dmilov commented 2 years ago

Published version 1.3.5 on PSGallery with a default timeout of 5 minutes. I believe that solves the issue for now.