{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1394","repository_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks","labels_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1394/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1394/comments","events_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1394/events","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/1394","id":140379625,"number":1394,"title":"Can we add PSSessionOptions to the PowerShellJob.ps1 / Invoke-PsOnRemote","user":{"login":"johnfleenor","id":1006377,"avatar_url":"https://avatars.githubusercontent.com/u/1006377?v=3","gravatar_id":"","url":"https://api.github.com/users/johnfleenor","html_url":"https://github.com/johnfleenor","followers_url":"https://api.github.com/users/johnfleenor/followers","following_url":"https://api.github.com/users/johnfleenor/following{/other_user}","gists_url":"https://api.github.com/users/johnfleenor/gists{/gist_id}","starred_url":"https://api.github.com/users/johnfleenor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnfleenor/subscriptions","organizations_url":"https://api.github.com/users/johnfleenor/orgs","repos_url":"https://api.github.com/users/johnfleenor/repos","events_url":"https://api.github.com/users/johnfleenor/events{/privacy}","received_events_url":"https://api.github.com/users/johnfleenor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pryenugu","id":11851941,"avatar_url":"https://avatars.githubusercontent.com/u/11851941?v=3","gravatar_id":"","url":"https://api.github.com/users/pryenugu","html_url":"https://github.com/pryenugu","followers_url":"https://api.github.com/users/pryenugu/followers","following_url":"https://api.github.com/users/pryenugu/following{/other_user}","gists_url":"https://api.github.com/users/pryenugu/gists{/gist_id}","starred_url":"https://api.github.com/users/pryenugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pryenugu/subscriptions","organizations_url":"https://api.github.com/users/pryenugu/orgs","repos_url":"https://api.github.com/users/pryenugu/repos","events_url":"https://api.github.com/users/pryenugu/events{/privacy}","received_events_url":"https://api.github.com/users/pryenugu/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-03-12T12:41:30Z","updated_at":"2016-03-21T13:00:03Z","closed_at":null,"body":"I would like to be able to pass session options like SkipRevocationCheck and change the OperationTimeout.  Not sure if it is possible to use one of the other parameters to accomplish this.  When I have tried to add -UseSSL or -SessionOption (New-PSSessionOption -NoEncryption -NoCompression -SkipRevocationCheck) that would normally be on Invoke-Command in the scriptArguments  I think the Invoke-PsOnRemote does not accept the parameter.  \r\nOr maybe add a SkipRecocationCheck like the skipCACheckOption"},"comment":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/comments/199260387","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/1394#issuecomment-199260387","issue_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1394","id":199260387,"user":{"login":"pryenugu","id":11851941,"avatar_url":"https://avatars.githubusercontent.com/u/11851941?v=3","gravatar_id":"","url":"https://api.github.com/users/pryenugu","html_url":"https://github.com/pryenugu","followers_url":"https://api.github.com/users/pryenugu/followers","following_url":"https://api.github.com/users/pryenugu/following{/other_user}","gists_url":"https://api.github.com/users/pryenugu/gists{/gist_id}","starred_url":"https://api.github.com/users/pryenugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pryenugu/subscriptions","organizations_url":"https://api.github.com/users/pryenugu/orgs","repos_url":"https://api.github.com/users/pryenugu/repos","events_url":"https://api.github.com/users/pryenugu/events{/privacy}","received_events_url":"https://api.github.com/users/pryenugu/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T13:00:02Z","updated_at":"2016-03-21T13:00:02Z","body":"@johnfleenor, In our implementation of the task the timeout is much more layered than just the Operation and Idle timeout. We currently do not have plans to expose the PSSessionOptions at the task or the cmdlet layer. Thanks for your feedback, for now if you would like more flexibility in the way your script runs in the remote machine you can consider using the normal PowerShell task and establish a remote session and execute scripts."}}