question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does getting all resources of a type make an individual call for each Resource Group?

See original GitHub issue

This is more of a question/feature-request than a bug.

In the below method and similar others, to list all resources of a particular type, will it make different REST calls for each resource group? If yes, Is it not a performance concern? Why can’t we make a single call using filter API with resourceType filter across all resource groups in a subscription?

public IEnumerable<IVirtualNetworkGateway> List()
        {
            return Manager.ResourceManager.ResourceGroups.List()
                .SelectMany(rg => ListByResourceGroup(rg.Name));
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
hovsepmcommented, Apr 12, 2018

I think we need to expose List method on GenericResource that will accept Odata filter string expression. Please upvote for prioritization.

0reactions
hovsepmcommented, Oct 18, 2018

Closing as by design for current stage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage resource groups - Azure portal
Use Azure portal to manage your resource groups through Azure Resource Manager. Shows how to create, list, and delete resource groups.
Read more >
Azure Resource Manager overview
Resource groups · All the resources in your resource group should share the same lifecycle. · Each resource can exist in only one...
Read more >
Microsoft Azure resource groups: Introduction and best ...
An Azure resource group is a required grouping for all your Azure virtual machines (VMs). In this post, we'll look into what this...
Read more >
Azure Resorce Group - The Complete Guide
Azure resource groups are a powerful tool for managing and organizing your cloud resources. In this blog, we'll explore what Azure resource ...
Read more >
Azure Resource Group Best Practices
All resource groups are created within a single Azure subscription and cannot be moved to another subscription. However, you can move individual resources...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found