{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/1174","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-java","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/1174/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/1174/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/1174/events","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/1174","id":181738457,"number":1174,"title":"App service creation not working","user":{"login":"jkubrynski","id":794206,"avatar_url":"https://avatars.githubusercontent.com/u/794206?v=3","gravatar_id":"","url":"https://api.github.com/users/jkubrynski","html_url":"https://github.com/jkubrynski","followers_url":"https://api.github.com/users/jkubrynski/followers","following_url":"https://api.github.com/users/jkubrynski/following{/other_user}","gists_url":"https://api.github.com/users/jkubrynski/gists{/gist_id}","starred_url":"https://api.github.com/users/jkubrynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkubrynski/subscriptions","organizations_url":"https://api.github.com/users/jkubrynski/orgs","repos_url":"https://api.github.com/users/jkubrynski/repos","events_url":"https://api.github.com/users/jkubrynski/events{/privacy}","received_events_url":"https://api.github.com/users/jkubrynski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jianghaolu","id":2320445,"avatar_url":"https://avatars.githubusercontent.com/u/2320445?v=3","gravatar_id":"","url":"https://api.github.com/users/jianghaolu","html_url":"https://github.com/jianghaolu","followers_url":"https://api.github.com/users/jianghaolu/followers","following_url":"https://api.github.com/users/jianghaolu/following{/other_user}","gists_url":"https://api.github.com/users/jianghaolu/gists{/gist_id}","starred_url":"https://api.github.com/users/jianghaolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianghaolu/subscriptions","organizations_url":"https://api.github.com/users/jianghaolu/orgs","repos_url":"https://api.github.com/users/jianghaolu/repos","events_url":"https://api.github.com/users/jianghaolu/events{/privacy}","received_events_url":"https://api.github.com/users/jianghaolu/received_events","type":"User","site_admin":false},"assignees":[{"login":"jianghaolu","id":2320445,"avatar_url":"https://avatars.githubusercontent.com/u/2320445?v=3","gravatar_id":"","url":"https://api.github.com/users/jianghaolu","html_url":"https://github.com/jianghaolu","followers_url":"https://api.github.com/users/jianghaolu/followers","following_url":"https://api.github.com/users/jianghaolu/following{/other_user}","gists_url":"https://api.github.com/users/jianghaolu/gists{/gist_id}","starred_url":"https://api.github.com/users/jianghaolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianghaolu/subscriptions","organizations_url":"https://api.github.com/users/jianghaolu/orgs","repos_url":"https://api.github.com/users/jianghaolu/repos","events_url":"https://api.github.com/users/jianghaolu/events{/privacy}","received_events_url":"https://api.github.com/users/jianghaolu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-10-07T18:35:10Z","updated_at":"2016-10-08T15:58:52Z","closed_at":null,"body":"I was trying to use `WebSiteManagementClientImpl` to create `sites` object. And it looks there is a bug in the backend API. Documentation (and Java SDK implementation) tells that properties like `alwaysOn`, `webSocketsEnabled` or `defaultDocuments` should be set on `properties` node of the `siteConfig` object. That's not working at all, but when I set those values directly on `siteConfig` it works correctly. Below you can find correct document, and document generated by SDK. It's generally not your bug, but I have no idea where can I submit bug in backend API :)\r\n\r\nSDK:\r\n```\r\n{\r\n\t\"location\": \"westeurope\",\r\n\t\"properties\": {\r\n\t\t\"name\": \"MY_SITE_NAME\",\r\n\t\t\"serverFarmId\": \"MY_FARM_ID\",\r\n\t\t\"clientAffinityEnabled\":false,\r\n\t\t\"siteConfig\": {\r\n\t\t\t\"location\": \"westeurope\",\r\n\t\t\t\"properties\": {\r\n\t\t\t        \"alwaysOn\":true,\r\n\t\t\t        \"webSocketsEnabled\":true,\r\n\t\t\t        \"defaultDocuments\":[\"index.html\"]\r\n\t\t\t}  \r\n\t\t}\r\n\t}\r\n}\r\n```\r\nWorking document:\r\n```\r\n{\r\n\t\"location\": \"westeurope\",\r\n\t\"properties\": {\r\n\t\t\"name\": \"MY_SITE_NAME\",\r\n\t\t\"serverFarmId\": \"MY_FARM_ID\",\r\n\t\t\"clientAffinityEnabled\":false,\r\n\t\t\"siteConfig\": {\r\n\t\t\t\"location\": \"westeurope\",\r\n\t\t\t\"alwaysOn\":true,\r\n\t\t\t\"webSocketsEnabled\":true,\r\n\t\t\t\"defaultDocuments\":[\"index.html\"]\r\n\t\t}\r\n\t}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/comments/252432507","html_url":"https://github.com/Azure/azure-sdk-for-java/issues/1174#issuecomment-252432507","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-java/issues/1174","id":252432507,"user":{"login":"amarzavery","id":4521223,"avatar_url":"https://avatars.githubusercontent.com/u/4521223?v=3","gravatar_id":"","url":"https://api.github.com/users/amarzavery","html_url":"https://github.com/amarzavery","followers_url":"https://api.github.com/users/amarzavery/followers","following_url":"https://api.github.com/users/amarzavery/following{/other_user}","gists_url":"https://api.github.com/users/amarzavery/gists{/gist_id}","starred_url":"https://api.github.com/users/amarzavery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarzavery/subscriptions","organizations_url":"https://api.github.com/users/amarzavery/orgs","repos_url":"https://api.github.com/users/amarzavery/repos","events_url":"https://api.github.com/users/amarzavery/events{/privacy}","received_events_url":"https://api.github.com/users/amarzavery/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T15:58:51Z","updated_at":"2016-10-08T15:58:51Z","body":"@jianghaolu - The siteconfig properties are flattened in the sdk as per the x-ms-client-flatten extension, which is the right thing.\r\n\r\nIntellisense should guide the customer to do the right thing. "}}
{"actor":{"display_login":"amarzavery"}}