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.

ResourceGroup - how do I get a list of resources of all types?

See original GitHub issue

There are many different methods that get resources of different types - GetStorageAccounts(), etc. However, I couldn’t find any method that can list all the resources regardless the type, i.e. do the same what the Get-AzResource cmdlet without args does. Is there any way to do that?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andrei-fabercommented, Jan 25, 2022

@Yao725 I see. Thanks.

0reactions
Yao725commented, Jan 25, 2022

@andrei-faber You can use resource.Id.ResourceType to get the type of the resource.

Read more comments on GitHub >

github_iconTop Results From Across the Web

List By Resource Group - REST API (Azure ...
Learn more about Resource Management service - Get all the resources for a resource group.
Read more >
Get-AzResourceGroup (Az.Resources)
The Get-AzResourceGroup cmdlet gets Azure resource groups in the current subscription. You can get all resource groups, or specify a resource group by...
Read more >
List of all azure resource types in Azure?
If you just want to list resource types, you can use Get-AzureRmResourceProvider -ListAvailable | Select-Object ProviderNamespace, ...
Read more >
List all resources in a resource group using an Azure CLI ...
It's great to see all your resources list within the Azure portal and grouped within a resource group. In this video I show...
Read more >
list-group-resources — AWS CLI 1.29.25 Command ...
An array of resources from which you can determine each resource's identity, type, and group membership status. A structure returned by the ListGroupResources ......
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