How to filter the resources count in GET Request in AzureRM ?
For an example in List Virtual Machines in an subscription . We get all the Vm's running in an account .
But I need to get 10 VM's alone in ascending or any sorting order . Is there any filter available like that ?
You could use the following API.
Using
$top=10
to filter the top 10 result. See this example.If the sorting order does not matter for you, you can filter the resource count for the top 10 VMs in the GET request below:
I've tried the requests below and tweak resource count for filtering and they all worked as expected.
Sample response is like below:
Hope this helps.