{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2625","repository_url":"https://api.github.com/repos/Azure/azure-xplat-cli","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2625/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2625/comments","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2625/events","html_url":"https://github.com/Azure/azure-xplat-cli/issues/2625","id":140039799,"number":2625,"title":"bug: azure group log show <rg> command unable to find resource group","user":{"login":"lbrader","id":1919914,"avatar_url":"https://avatars.githubusercontent.com/u/1919914?v=3","gravatar_id":"","url":"https://api.github.com/users/lbrader","html_url":"https://github.com/lbrader","followers_url":"https://api.github.com/users/lbrader/followers","following_url":"https://api.github.com/users/lbrader/following{/other_user}","gists_url":"https://api.github.com/users/lbrader/gists{/gist_id}","starred_url":"https://api.github.com/users/lbrader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbrader/subscriptions","organizations_url":"https://api.github.com/users/lbrader/orgs","repos_url":"https://api.github.com/users/lbrader/repos","events_url":"https://api.github.com/users/lbrader/events{/privacy}","received_events_url":"https://api.github.com/users/lbrader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-10T23:33:46Z","updated_at":"2016-03-16T16:19:17Z","closed_at":null,"body":"CLI Version: **0.9.16**\r\nOS Type: Win 10\r\nInstallation via:   github repo\r\n\r\nMode: **ARM **\r\n\r\nDescription:\r\n''azure group log show <some resource group>'  errors out saying the deployment doesn't exist\r\n\r\nSteps to reproduce:\r\n1) Run `azure resource create ....' create a resource group\r\nOR\r\n2) Run 'azure group list' select any resource\r\n3) Then run `azure group log show <existing RG>'\r\n\r\nNOTE\r\n4) Run 'azure group log show -a <same existing RG>'  THIS COMMAND works. \r\nNone of the others work\r\n\r\nError stack trace:\r\n2016-03-10T23:29:40.885Z:\r\n{ [Error: Deployment not found]\r\n  stack: [Getter/Setter],\r\n  __frame: \r\n   { name: '_read',\r\n     line: 235,\r\n     file: 'C:\\\\Users\\\\lbrader\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\azure-cli\\\\node_modules\\\\streamline-streams\\\\lib\\\\streams._js',\r\n     prev: \r\n      { name: 'self_read__1',\r\n        line: 234,\r\n        file: 'C:\\\\Users\\\\lbrader\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\azure-cli\\\\node_modules\\\\streamline-streams\\\\lib\\\\streams._js',\r\n        prev: [Object],\r\n        calls: 1,\r\n        active: false,\r\n        offset: 22,\r\n        col: 93 },\r\n     calls: 0,\r\n     active: false,\r\n     offset: 2,\r\n     col: 27 },\r\n  rawStack: [Getter] }\r\nError: Deployment not found\r\n  <<< async stack >>>\r\n  at _read (C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\node_modules\\streamline-streams\\lib\\streams._js:237:28)\r\n  at self_read__1 (C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\node_modules\\streamline-streams\\lib\\streams._js:256:94)\r\n  at __7 (C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\lib\\commands\\arm\\group\\group._js:382:32)\r\n  <<< raw stack >>>\r\n    at C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\lib\\commands\\arm\\group\\groupUtils._js:194:28\r\n    at C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\node_modules\\azure-arm-resource\\lib\\resource\\operations\\deployments.js:1358:12\r\n    at retryCallback (C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\node_modules\\ms-rest-azure\\node_modules\\ms-rest\\lib\\filters\\exponentialRetryPolicyFilter.js:140:9)\r\n    at handleRedirect (C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\node_modules\\ms-rest-azure\\node_modules\\ms-rest\\lib\\filters\\redirectFilter.js:36:9)\r\n    at C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\lib\\util\\utils.js:493:7\r\n    at handleRedirect (C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\lib\\util\\utils.js:470:9)\r\n    at C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\lib\\util\\logging.js:401:7\r\n    at Request._callback (C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\node_modules\\ms-rest-azure\\node_modules\\ms-rest\\lib\\requestPipeline.js:125:16)\r\n    at Request.self.callback (C:\\Users\\lbrader\\AppData\\Roaming\\npm\\node_modules\\azure-cli\\node_modules\\ms-rest-azure\\node_modules\\ms-rest\\node_modules\\request\\request.js:199:22)\r\n    at emitTwo (events.js:87:13)\r\n\r\n\r\nIf the issue is w.r.t `authentication` then please set `AZURE_ADAL_LOGGING_ENABLED=1` and then run the `azure login` command again. \r\nPlease paste the verbose logs over here. (Make sure to delete the password before pasting the contents).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments/197406669","html_url":"https://github.com/Azure/azure-xplat-cli/issues/2625#issuecomment-197406669","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2625","id":197406669,"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-03-16T16:19:17Z","updated_at":"2016-03-16T16:19:17Z","body":"Yes I have run the command. \r\nThe group log show command requires resource group as a required parameter. If not provided then it will enter in interactive mode and prompt the user to provide resource group name.\r\n\r\nThe **basic pre-requisite** to do a group log show is to actually create a deployment via `group deployment create` command. The group log show command displays the logs of the last deployment that was created under the resource group, if the deployment name was not provided.\r\n\r\nIf this command is used with --json switch then it will display detailed logs sent from the server\r\n\r\n```\r\nD:\\work\\sdk>azure group log show -h\r\nhelp:    Retrieves and shows logs for resource group operations\r\nhelp:\r\nhelp:    Usage: group log show [options] [name]\r\nhelp:\r\nhelp:    Options:\r\nhelp:      -h, --help                        output usage information\r\nhelp:      -v, --verbose                     use verbose output\r\nhelp:      -vv                               more verbose with debug output\r\nhelp:      --json                            use json output\r\nhelp:      -n --name <name>                  the resource group name\r\nhelp:      -a --all                          returns logs for all operations (including CRUD and deployment)\r\nhelp:      -l --last-deployment              returns logs for the last deployment\r\nhelp:      -d --deployment <name>            the name of the deployment whose logs you want to see\r\nhelp:      -s --subscription <subscription>  the subscription identifier\r\nhelp:\r\nhelp:    Current Mode: arm (Azure Resource Management)\r\n\r\n```"}}