{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-libraries-for-net/issues/180","repository_url":"https://api.github.com/repos/Azure/azure-libraries-for-net","labels_url":"https://api.github.com/repos/Azure/azure-libraries-for-net/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-libraries-for-net/issues/180/comments","events_url":"https://api.github.com/repos/Azure/azure-libraries-for-net/issues/180/events","html_url":"https://github.com/Azure/azure-libraries-for-net/issues/180","id":299950330,"number":180,"title":"Wrapper for getting all resources by group/tag?","user":{"login":"kierenj","id":82343,"avatar_url":"https://avatars0.githubusercontent.com/u/82343?v=4","gravatar_id":"","url":"https://api.github.com/users/kierenj","html_url":"https://github.com/kierenj","followers_url":"https://api.github.com/users/kierenj/followers","following_url":"https://api.github.com/users/kierenj/following{/other_user}","gists_url":"https://api.github.com/users/kierenj/gists{/gist_id}","starred_url":"https://api.github.com/users/kierenj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kierenj/subscriptions","organizations_url":"https://api.github.com/users/kierenj/orgs","repos_url":"https://api.github.com/users/kierenj/repos","events_url":"https://api.github.com/users/kierenj/events{/privacy}","received_events_url":"https://api.github.com/users/kierenj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-24T15:51:14Z","updated_at":"2018-02-26T21:25:15Z","closed_at":null,"author_association":"NONE","body":"I'm looking to retrieve a list of all resources in a given resource group.  At the moment the only way I've found is:\r\n\r\n`(IAzure).MetricDefinitions.Manager.ResourceManager.GenericResources.ListByResourceGroupAsync(group.Name)`\r\n\r\nIs that the recommended way to go?\r\n\r\nAlso: feel a bit weird asking a usage question in Issues.  If you want to redirect me somewhere better/more appropriate, I'll be happy to close this one up! Thanks!"},"comment":{"url":"https://api.github.com/repos/Azure/azure-libraries-for-net/issues/comments/368655876","html_url":"https://github.com/Azure/azure-libraries-for-net/issues/180#issuecomment-368655876","issue_url":"https://api.github.com/repos/Azure/azure-libraries-for-net/issues/180","id":368655876,"user":{"login":"hovsepm","id":7052173,"avatar_url":"https://avatars2.githubusercontent.com/u/7052173?v=4","gravatar_id":"","url":"https://api.github.com/users/hovsepm","html_url":"https://github.com/hovsepm","followers_url":"https://api.github.com/users/hovsepm/followers","following_url":"https://api.github.com/users/hovsepm/following{/other_user}","gists_url":"https://api.github.com/users/hovsepm/gists{/gist_id}","starred_url":"https://api.github.com/users/hovsepm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hovsepm/subscriptions","organizations_url":"https://api.github.com/users/hovsepm/orgs","repos_url":"https://api.github.com/users/hovsepm/repos","events_url":"https://api.github.com/users/hovsepm/events{/privacy}","received_events_url":"https://api.github.com/users/hovsepm/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T21:25:15Z","updated_at":"2018-02-26T21:25:15Z","author_association":"CONTRIBUTOR","body":"you should be able to access `.Manager.ResourceManager.GenericResources.` and then all the methods through any operation group under. e.g. \r\n`(IAzure).VirtualMachines.Manager.ResourceManager.GenericResources`\r\n`(IAzure).NetworkInterfaces.Manager.ResourceManager.GenericResources`\r\netc.\r\nYou can also create a resource group manager directly.\r\n\r\nWe did not see much benefits of exposing a GenericResources directly from the IAzure interface. Fluent models are based on a specific resource type and we group the functionality of that type in the operation groups. Sorry if this sounds confusing :). "}}
{"actor":{"display_login":"hovsepm"}}