Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Get-AzureRmResource requires "ResourceName" as mandatory parameter. #1259
I was using following commands as part of my automation. They worked fine until v.0.9.9
Each command gave all resources for given resource type.
If I execute
We are looking into fixing this issue.
In the meantime, you can use the following cmdlet which we have added to search for resources via query parameters-
Another usecase for the Find cmdlet would be if you'd like to find all the resources containing a specific tag. Such functionality, which was earlier supported through Get, has now been moved to this new cmdlet. This was done to simplify the existing Get-AzureRmResource cmdlet which was pretty overloaded.
Please let us know if you have any questions on this.
For finding all resources with a given tag, you will use the following -
Now, if you'd like to find all resources of a specific type which contains the tag, you can do something like below -