{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2446","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2446/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2446/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2446/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/2446","id":175707945,"number":2446,"title":"Dynamic picklist in TFS task","user":{"login":"deepad5","id":22072768,"avatar_url":"https://avatars.githubusercontent.com/u/22072768?v=3","gravatar_id":"","url":"https://api.github.com/users/deepad5","html_url":"https://github.com/deepad5","followers_url":"https://api.github.com/users/deepad5/followers","following_url":"https://api.github.com/users/deepad5/following{/other_user}","gists_url":"https://api.github.com/users/deepad5/gists{/gist_id}","starred_url":"https://api.github.com/users/deepad5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepad5/subscriptions","organizations_url":"https://api.github.com/users/deepad5/orgs","repos_url":"https://api.github.com/users/deepad5/repos","events_url":"https://api.github.com/users/deepad5/events{/privacy}","received_events_url":"https://api.github.com/users/deepad5/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20RM","name":"Area: RM","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"GitHubSriramB","id":13654692,"avatar_url":"https://avatars.githubusercontent.com/u/13654692?v=3","gravatar_id":"","url":"https://api.github.com/users/GitHubSriramB","html_url":"https://github.com/GitHubSriramB","followers_url":"https://api.github.com/users/GitHubSriramB/followers","following_url":"https://api.github.com/users/GitHubSriramB/following{/other_user}","gists_url":"https://api.github.com/users/GitHubSriramB/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHubSriramB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHubSriramB/subscriptions","organizations_url":"https://api.github.com/users/GitHubSriramB/orgs","repos_url":"https://api.github.com/users/GitHubSriramB/repos","events_url":"https://api.github.com/users/GitHubSriramB/events{/privacy}","received_events_url":"https://api.github.com/users/GitHubSriramB/received_events","type":"User","site_admin":false},"assignees":[{"login":"GitHubSriramB","id":13654692,"avatar_url":"https://avatars.githubusercontent.com/u/13654692?v=3","gravatar_id":"","url":"https://api.github.com/users/GitHubSriramB","html_url":"https://github.com/GitHubSriramB","followers_url":"https://api.github.com/users/GitHubSriramB/followers","following_url":"https://api.github.com/users/GitHubSriramB/following{/other_user}","gists_url":"https://api.github.com/users/GitHubSriramB/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHubSriramB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHubSriramB/subscriptions","organizations_url":"https://api.github.com/users/GitHubSriramB/orgs","repos_url":"https://api.github.com/users/GitHubSriramB/repos","events_url":"https://api.github.com/users/GitHubSriramB/events{/privacy}","received_events_url":"https://api.github.com/users/GitHubSriramB/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-09-08T09:34:54Z","updated_at":"2016-09-12T18:57:15Z","closed_at":null,"body":"I am trying to create dynamic picklist tied to a service end point. However I am seeing the error below while trying to connect to the service end point in fiddler.\r\n{\"$id\":\"1\",\"innerException\":null,\"message\":\"The request was aborted: Could not create SSL/TLS secure channel.\",\"typeName\":\"Microsoft.TeamFoundation.DistributedTask.WebApi.ServiceEndpointQueryFailedException, Microsoft.TeamFoundation.DistributedTask.WebApi, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\"typeKey\":\"ServiceEndpointQueryFailedException\",\"errorCode\":0,\"eventId\":3000}\r\n\r\nThe server I am connecting to expects the TLS protocol to be set. I am able to invoke the rest api from a powershell script by setting the security protocol  as below in the code.\r\n[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy\r\n[System.Net.ServicePointManager]::SecurityProtocol = @(\"Tls12\")\r\n\r\nQuestions:\r\n1) Is it possible to do the same while creating the service end point or in the task.json ? \r\n2) Is it possible to dynamically populate the picklist from a powershell script so that I could call the rest api from the powershell script after setting the certificate policy and protocol. If so, could you point me to the details?\r\n\r\nIf there is any other way to solve this issue, please let me know.\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/246453642","html_url":"https://github.com/Microsoft/vsts-tasks/issues/2446#issuecomment-246453642","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2446","id":246453642,"user":{"login":"deepad5","id":22072768,"avatar_url":"https://avatars.githubusercontent.com/u/22072768?v=3","gravatar_id":"","url":"https://api.github.com/users/deepad5","html_url":"https://github.com/deepad5","followers_url":"https://api.github.com/users/deepad5/followers","following_url":"https://api.github.com/users/deepad5/following{/other_user}","gists_url":"https://api.github.com/users/deepad5/gists{/gist_id}","starred_url":"https://api.github.com/users/deepad5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepad5/subscriptions","organizations_url":"https://api.github.com/users/deepad5/orgs","repos_url":"https://api.github.com/users/deepad5/repos","events_url":"https://api.github.com/users/deepad5/events{/privacy}","received_events_url":"https://api.github.com/users/deepad5/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T18:57:15Z","updated_at":"2016-09-12T18:57:15Z","body":"[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy\r\n[System.Net.ServicePointManager]::SecurityProtocol = @(\"Tls12\") \r\nSetting these in the powershell script set the security protocol used by the ServicePoint in a programmatic manner.  I am not sure if internally TFS appends this information into the request header.\r\nIn the declarative form for the service point, is there a way to set the protocol information?"}}
{"actor":{"display_login":"deepad5"}}