{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/Azure-Functions/issues/584","repository_url":"https://api.github.com/repos/Azure/Azure-Functions","labels_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/584/comments","events_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/584/events","html_url":"https://github.com/Azure/Azure-Functions/issues/584","id":272990354,"number":584,"title":"Running with the debugger does not respect LocalHttpPort in local.settings.json","user":{"login":"leftler","id":1425499,"avatar_url":"https://avatars1.githubusercontent.com/u/1425499?v=4","gravatar_id":"","url":"https://api.github.com/users/leftler","html_url":"https://github.com/leftler","followers_url":"https://api.github.com/users/leftler/followers","following_url":"https://api.github.com/users/leftler/following{/other_user}","gists_url":"https://api.github.com/users/leftler/gists{/gist_id}","starred_url":"https://api.github.com/users/leftler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leftler/subscriptions","organizations_url":"https://api.github.com/users/leftler/orgs","repos_url":"https://api.github.com/users/leftler/repos","events_url":"https://api.github.com/users/leftler/events{/privacy}","received_events_url":"https://api.github.com/users/leftler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-11-10T16:36:53Z","updated_at":"2018-03-21T05:32:46Z","closed_at":"2017-11-13T21:07:17Z","author_association":"NONE","body":"\r\n\r\n1. Create a new function app\r\n2. Update the NuGet package Microsoft.NET.Sdk.Functions to 1.0.6\r\n3. Edit local.settings.json to be the following\r\n```\r\n{\r\n  \"IsEncrypted\": false,\r\n  \"Values\": {\r\n    \"AzureWebJobsStorage\": \"\",\r\n    \"AzureWebJobsDashboard\": \"\"\r\n  },\r\n  \"Host\": {\r\n    \"LocalHttpPort\": 7072,\r\n    \"CORS\": \"*\"\r\n  }\r\n}\r\n```\r\n4. Add a simple HttpTrigger using the default template\r\n5. Run function app.\r\n\r\nIn the console window you will see \r\n\r\n> [11/10/2017 4:32:33 PM] Reading host configuration file 'D:\\Temp\\ExampleApp\\ExampleApp\\bin\\Debug\\net461\\host.json'\r\n> [11/10/2017 4:32:34 PM] Host configuration file read:\r\n> [11/10/2017 4:32:34 PM] {\r\n> }\r\n> Listening on http://localhost:7071/\r\n> Hit CTRL-C to exit...\r\n> [11/10/2017 4:32:34 PM] Loaded custom extension 'BotFrameworkConfiguration'\r\n> [11/10/2017 4:32:34 PM] Loaded custom extension 'SendGridConfiguration'\r\n> [11/10/2017 4:32:34 PM] Loaded custom extension 'EventGridExtensionConfig'\r\n> [11/10/2017 4:32:34 PM] Generating 1 job function(s)\r\n> [11/10/2017 4:32:34 PM] Starting Host (HostId=oshidevdw1012-332967204, Version=1.0.11351.0, ProcessId=8524, Debug=False, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=)\r\n> [11/10/2017 4:32:34 PM] Found the following functions:\r\n> [11/10/2017 4:32:34 PM] ExampleApp.Function1.Run\r\n> [11/10/2017 4:32:34 PM]\r\n> [11/10/2017 4:32:34 PM] Job host started\r\n> [11/10/2017 4:32:35 PM] Executing HTTP request: {\r\n> [11/10/2017 4:32:35 PM]   \"requestId\": null,\r\n> [11/10/2017 4:32:35 PM]   \"method\": \"GET\",\r\n> [11/10/2017 4:32:35 PM]   \"uri\": \"/\"\r\n> [11/10/2017 4:32:35 PM] }\r\n> [11/10/2017 4:32:35 PM] Executed HTTP request: {\r\n> [11/10/2017 4:32:35 PM]   \"requestId\": \"fd683b48-be98-4ee4-8be3-2a2c56a2b970\",\r\n> [11/10/2017 4:32:35 PM]   \"method\": \"GET\",\r\n> [11/10/2017 4:32:35 PM]   \"uri\": \"/\",\r\n> [11/10/2017 4:32:35 PM]   \"authorizationLevel\": \"Anonymous\"\r\n> [11/10/2017 4:32:35 PM] }\r\n> [11/10/2017 4:32:35 PM] Response details: {\r\n> [11/10/2017 4:32:35 PM]   \"requestId\": \"fd683b48-be98-4ee4-8be3-2a2c56a2b970\",\r\n> [11/10/2017 4:32:35 PM]   \"status\": \"OK\"\r\n> [11/10/2017 4:32:35 PM] }\r\n> \r\n> Http Functions:\r\n> \r\n>         Function1: http://localhost:7071/api/Function1\r\n> \r\n> Debugger listening on [::]:5858\r\n\r\nYou can see that the function is running on port 7071 and not on our custom 7072\r\n\r\nIf you start another function app with `\"LocalHttpPort\": 7073` set as the setting you will get the error message \r\n\r\n> HTTP could not register URL http://localhost:7071/. Another application has already registered this URL with HTTP.SYS.\r\n\r\nAttached is a basic repo using the same steps listed above.\r\n[ExampleApp.zip](https://github.com/Azure/Azure-Functions/files/1462010/ExampleApp.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/Azure-Functions/issues/comments/374837670","html_url":"https://github.com/Azure/Azure-Functions/issues/584#issuecomment-374837670","issue_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/584","id":374837670,"user":{"login":"Mike-EEE","id":2931376,"avatar_url":"https://avatars2.githubusercontent.com/u/2931376?v=4","gravatar_id":"","url":"https://api.github.com/users/Mike-EEE","html_url":"https://github.com/Mike-EEE","followers_url":"https://api.github.com/users/Mike-EEE/followers","following_url":"https://api.github.com/users/Mike-EEE/following{/other_user}","gists_url":"https://api.github.com/users/Mike-EEE/gists{/gist_id}","starred_url":"https://api.github.com/users/Mike-EEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mike-EEE/subscriptions","organizations_url":"https://api.github.com/users/Mike-EEE/orgs","repos_url":"https://api.github.com/users/Mike-EEE/repos","events_url":"https://api.github.com/users/Mike-EEE/events{/privacy}","received_events_url":"https://api.github.com/users/Mike-EEE/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T05:32:46Z","updated_at":"2018-03-21T05:32:46Z","author_association":"NONE","body":"Additionally, setting `host start --pause-on-error` results in the following exception:\r\n\r\n`Microsoft.DotNet.Cli.Utils.CommandUnknownException: 'No executable found matching command \"dotnet-host\"'`"}}
{"actor":{"display_login":"Mike-EEE"}}