{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1209","repository_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks","labels_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1209/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1209/comments","events_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1209/events","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/1209","id":132649929,"number":1209,"title":"Publish-AzureWebDeployment.ps1 default Slot value","user":{"login":"RonniePitts","id":14466913,"avatar_url":"https://avatars.githubusercontent.com/u/14466913?v=3","gravatar_id":"","url":"https://api.github.com/users/RonniePitts","html_url":"https://github.com/RonniePitts","followers_url":"https://api.github.com/users/RonniePitts/followers","following_url":"https://api.github.com/users/RonniePitts/following{/other_user}","gists_url":"https://api.github.com/users/RonniePitts/gists{/gist_id}","starred_url":"https://api.github.com/users/RonniePitts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonniePitts/subscriptions","organizations_url":"https://api.github.com/users/RonniePitts/orgs","repos_url":"https://api.github.com/users/RonniePitts/repos","events_url":"https://api.github.com/users/RonniePitts/events{/privacy}","received_events_url":"https://api.github.com/users/RonniePitts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"yaananth","id":12280011,"avatar_url":"https://avatars.githubusercontent.com/u/12280011?v=3","gravatar_id":"","url":"https://api.github.com/users/yaananth","html_url":"https://github.com/yaananth","followers_url":"https://api.github.com/users/yaananth/followers","following_url":"https://api.github.com/users/yaananth/following{/other_user}","gists_url":"https://api.github.com/users/yaananth/gists{/gist_id}","starred_url":"https://api.github.com/users/yaananth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaananth/subscriptions","organizations_url":"https://api.github.com/users/yaananth/orgs","repos_url":"https://api.github.com/users/yaananth/repos","events_url":"https://api.github.com/users/yaananth/events{/privacy}","received_events_url":"https://api.github.com/users/yaananth/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-02-10T09:42:43Z","updated_at":"2016-02-16T21:01:31Z","closed_at":"2016-02-16T20:28:04Z","body":"There are some instances where a Azure Web site will have a default instance (no slot setting).\r\n\r\nCurrently leaving the Slot setting blank will always default to Production even though the remaining code supports it. \r\n\r\nThis line should be removed (it only works if the name contains () characters, e.g. the default value isnt used),\r\n\r\nif (!$Slot -and $WebSiteName -notlike '*(*)*') {\r\n        $Slot = 'production'\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/comments/184873283","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/1209#issuecomment-184873283","issue_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1209","id":184873283,"user":{"login":"yaananth","id":12280011,"avatar_url":"https://avatars.githubusercontent.com/u/12280011?v=3","gravatar_id":"","url":"https://api.github.com/users/yaananth","html_url":"https://github.com/yaananth","followers_url":"https://api.github.com/users/yaananth/followers","following_url":"https://api.github.com/users/yaananth/following{/other_user}","gists_url":"https://api.github.com/users/yaananth/gists{/gist_id}","starred_url":"https://api.github.com/users/yaananth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaananth/subscriptions","organizations_url":"https://api.github.com/users/yaananth/orgs","repos_url":"https://api.github.com/users/yaananth/repos","events_url":"https://api.github.com/users/yaananth/events{/privacy}","received_events_url":"https://api.github.com/users/yaananth/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T21:01:31Z","updated_at":"2016-02-16T21:01:31Z","body":"it will if the name doesn't have slot in it. I verified on azure powershell.\r\nTry passing in - Name(slot), it won't return array"}}