{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-cli/issues/14","repository_url":"https://api.github.com/repos/Azure/azure-functions-cli","labels_url":"https://api.github.com/repos/Azure/azure-functions-cli/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-cli/issues/14/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-cli/issues/14/events","html_url":"https://github.com/Azure/azure-functions-cli/issues/14","id":198961342,"number":14,"title":"[CLI] func fetch secrets fails for bot service","user":{"login":"jsiegmund","id":1820644,"avatar_url":"https://avatars.githubusercontent.com/u/1820644?v=3","gravatar_id":"","url":"https://api.github.com/users/jsiegmund","html_url":"https://github.com/jsiegmund","followers_url":"https://api.github.com/users/jsiegmund/followers","following_url":"https://api.github.com/users/jsiegmund/following{/other_user}","gists_url":"https://api.github.com/users/jsiegmund/gists{/gist_id}","starred_url":"https://api.github.com/users/jsiegmund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsiegmund/subscriptions","organizations_url":"https://api.github.com/users/jsiegmund/orgs","repos_url":"https://api.github.com/users/jsiegmund/repos","events_url":"https://api.github.com/users/jsiegmund/events{/privacy}","received_events_url":"https://api.github.com/users/jsiegmund/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Azure/azure-functions-cli/milestones/1","html_url":"https://github.com/Azure/azure-functions-cli/milestone/1","labels_url":"https://api.github.com/repos/Azure/azure-functions-cli/milestones/1/labels","id":2231797,"number":1,"title":"1.0.0.beta.10","description":null,"creator":{"login":"ahmelsayed","id":645740,"avatar_url":"https://avatars.githubusercontent.com/u/645740?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmelsayed","html_url":"https://github.com/ahmelsayed","followers_url":"https://api.github.com/users/ahmelsayed/followers","following_url":"https://api.github.com/users/ahmelsayed/following{/other_user}","gists_url":"https://api.github.com/users/ahmelsayed/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmelsayed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmelsayed/subscriptions","organizations_url":"https://api.github.com/users/ahmelsayed/orgs","repos_url":"https://api.github.com/users/ahmelsayed/repos","events_url":"https://api.github.com/users/ahmelsayed/events{/privacy}","received_events_url":"https://api.github.com/users/ahmelsayed/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2017-01-05T21:39:05Z","updated_at":"2017-01-05T21:42:58Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-01-05T13:56:48Z","updated_at":"2017-01-06T17:21:51Z","closed_at":"2017-01-05T21:38:26Z","body":"I've created a bot service in Azure. With the latest version of the CLI (0.2.9) I tried fetching the secrets (previously appsettings) using `func fetch secrets <botinstance>`. This fails (see below). I think this is specifically related to the bot service instance; when I try the exact same for a 'normal' function app, it does seem to work. \r\n\r\n``System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at ARMClient.Library.ArmUriTemplate.Bind(Object obj)\r\n   at WebJobs.Script.Cli.Arm.ArmManager.<LoadSiteObjectAsync>d__22.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at WebJobs.Script.Cli.Arm.ArmManager.<LoadAsync>d__21.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at WebJobs.Script.Cli.Arm.ArmManager.<GetFunctionAppAsync>d__4.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at WebJobs.Script.Cli.Verbs.FetchVerb.<RunAsync>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n   at NCli.ConsoleApp.<RunAsync>d__5`1.MoveNext()``"},"comment":{"url":"https://api.github.com/repos/Azure/azure-functions-cli/issues/comments/270954739","html_url":"https://github.com/Azure/azure-functions-cli/issues/14#issuecomment-270954739","issue_url":"https://api.github.com/repos/Azure/azure-functions-cli/issues/14","id":270954739,"user":{"login":"ahmelsayed","id":645740,"avatar_url":"https://avatars.githubusercontent.com/u/645740?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmelsayed","html_url":"https://github.com/ahmelsayed","followers_url":"https://api.github.com/users/ahmelsayed/followers","following_url":"https://api.github.com/users/ahmelsayed/following{/other_user}","gists_url":"https://api.github.com/users/ahmelsayed/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmelsayed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmelsayed/subscriptions","organizations_url":"https://api.github.com/users/ahmelsayed/orgs","repos_url":"https://api.github.com/users/ahmelsayed/repos","events_url":"https://api.github.com/users/ahmelsayed/events{/privacy}","received_events_url":"https://api.github.com/users/ahmelsayed/received_events","type":"User","site_admin":false},"created_at":"2017-01-06T17:21:51Z","updated_at":"2017-01-06T17:21:51Z","body":"I'd say releases on this new github repo, but @lindydonna will have the right answer \r\n"}}
{"actor":{"display_login":"ahmelsayed"}}