{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-core-tools/issues/778","repository_url":"https://api.github.com/repos/Azure/azure-functions-core-tools","labels_url":"https://api.github.com/repos/Azure/azure-functions-core-tools/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-core-tools/issues/778/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-core-tools/issues/778/events","html_url":"https://github.com/Azure/azure-functions-core-tools/issues/778","id":366151386,"node_id":"MDU6SXNzdWUzNjYxNTEzODY=","number":778,"title":"\"func azure functionapp publish\" gives error code 400","user":{"login":"asavaritayal","id":8435148,"node_id":"MDQ6VXNlcjg0MzUxNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/8435148?v=4","gravatar_id":"","url":"https://api.github.com/users/asavaritayal","html_url":"https://github.com/asavaritayal","followers_url":"https://api.github.com/users/asavaritayal/followers","following_url":"https://api.github.com/users/asavaritayal/following{/other_user}","gists_url":"https://api.github.com/users/asavaritayal/gists{/gist_id}","starred_url":"https://api.github.com/users/asavaritayal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asavaritayal/subscriptions","organizations_url":"https://api.github.com/users/asavaritayal/orgs","repos_url":"https://api.github.com/users/asavaritayal/repos","events_url":"https://api.github.com/users/asavaritayal/events{/privacy}","received_events_url":"https://api.github.com/users/asavaritayal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-03T02:30:21Z","updated_at":"2018-10-03T02:30:22Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"_From @ErlendFax on October 2, 2018 8:35_\n\nI have followed every in the tutorial, but when I run `func azure functionapp publish myApp`, it returns:\r\n`Response status code does not indicate success: 400 (Bad Request).`\r\n\r\nWhat does this mean? How can I debug this error? Anyone else experiencing this? \r\n\r\nEDIT:\r\n\r\nFound out I can add `CLI_DEBUG=1` which gave me:\r\n\r\n> GET https://management.azure.com/subscriptions?api-version=2014-04-01\r\n> GET https://management.azure.com/subscriptions?api-version=2014-04-01\r\n> GET https://management.azure.com/subscriptions?api-version=2014-04-01\r\n> GET https://management.azure.com/subscriptions?api-version=2014-04-01\r\n> System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).\r\n>    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()\r\n>    at Azure.Functions.Cli.Helpers.AzureHelper.ArmHttpAsync[T](HttpMethod method, Uri uri, String accessToken, Object payload)\r\n>    at Azure.Functions.Cli.Helpers.AzureHelper.GetFunctionApp(String name, String accessToken)\r\n>    at Azure.Functions.Cli.Actions.AzureActions.PublishFunctionAppAction.RunAsync()\r\n>    at Azure.Functions.Cli.ConsoleApp.RunAsync[T](String[] args, IContainer container)\r\n\r\nEDIT 2:\r\n\r\nI tried pushing an that does not exist, `func azure functionapp publish myBSApp`, same response, could this indicate an error with the \"connection\" between me and Azure?  \r\n\r\nEDIT 3:\r\n\r\nI tried another method of getting this up in Azure. When I run `az functionapp deployment source config-zip  -g myRG -n myApp --src myFiles.zip`, I get:\r\n\r\n> Failed to retrieve Scm Uri\r\n> Traceback (most recent call last):\r\n>   File \"/usr/local/Cellar/azure-cli/2.0.44/libexec/lib/python3.7/site-packages/knack/cli.py\", line 197, in invoke\r\n>     cmd_result = self.invocation.execute(args)\r\n>   File \"/usr/local/Cellar/azure-cli/2.0.44/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py\", line 369, in execute\r\n>     six.reraise(*sys.exc_info())\r\n>   File \"/usr/local/Cellar/azure-cli/2.0.44/libexec/lib/python3.7/site-packages/six.py\", line 693, in reraise\r\n>     raise value\r\n>   File \"/usr/local/Cellar/azure-cli/2.0.44/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py\", line 343, in execute\r\n>     result = cmd(params)\r\n>   File \"/usr/local/Cellar/azure-cli/2.0.44/libexec/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py\", line 182, in __call__\r\n>     return self.handler(*args, **kwargs)\r\n>   File \"/usr/local/Cellar/azure-cli/2.0.44/libexec/lib/python3.7/site-packages/azure/cli/core/__init__.py\", line 436, in default_command_handler\r\n>     result = op(**command_args)\r\n>   File \"/usr/local/Cellar/azure-cli/2.0.44/libexec/lib/python3.7/site-packages/azure/cli/command_modules/appservice/custom.py\", line 170, in enable_zip_deploy\r\n>     scm_url = _get_scm_url(cmd, resource_group_name, name, slot)\r\n>   File \"/usr/local/Cellar/azure-cli/2.0.44/libexec/lib/python3.7/site-packages/azure/cli/command_modules/appservice/custom.py\", line 1153, in _get_scm_url\r\n>     raise ValueError('Failed to retrieve Scm Uri')\r\n> ValueError: Failed to retrieve Scm Uri\r\n\r\nI can't reach Kudu (Scm). Neither here or with Portal.\n\n_Copied from original issue: Azure/azure-functions-python-worker#214_"},"comment":{"url":"https://api.github.com/repos/Azure/azure-functions-core-tools/issues/comments/426492403","html_url":"https://github.com/Azure/azure-functions-core-tools/issues/778#issuecomment-426492403","issue_url":"https://api.github.com/repos/Azure/azure-functions-core-tools/issues/778","id":426492403,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjQ5MjQwMw==","user":{"login":"asavaritayal","id":8435148,"node_id":"MDQ6VXNlcjg0MzUxNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/8435148?v=4","gravatar_id":"","url":"https://api.github.com/users/asavaritayal","html_url":"https://github.com/asavaritayal","followers_url":"https://api.github.com/users/asavaritayal/followers","following_url":"https://api.github.com/users/asavaritayal/following{/other_user}","gists_url":"https://api.github.com/users/asavaritayal/gists{/gist_id}","starred_url":"https://api.github.com/users/asavaritayal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asavaritayal/subscriptions","organizations_url":"https://api.github.com/users/asavaritayal/orgs","repos_url":"https://api.github.com/users/asavaritayal/repos","events_url":"https://api.github.com/users/asavaritayal/events{/privacy}","received_events_url":"https://api.github.com/users/asavaritayal/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T02:30:22Z","updated_at":"2018-10-03T02:30:22Z","author_association":"CONTRIBUTOR","body":"_From @ErlendFax on October 2, 2018 16:13_\n\nYes, I can see it. However, I can not enter/use Kudu, among a few other features under the Platform features in Portal.  Name: erlendapp"}}
{"actor":{"display_login":"asavaritayal"}}