projectkudu/ARMClient

Parameters in Resources#List does not work

Opened this issue · 2 comments

When I call the rest api by using command:

armclient get "/subscriptions/<subscriptionId>/resources?$top=2&api-version=2018-05-01&$filter=resourceType eq 'Microsoft.Compute/virtualMachines'"

gets a full list unfiltered, which is not the result I expected.
Expected result should be a response with 2 entries of filtered resources and a string called nextLink referring to a url that I can get next 2 entries of the results.

Thanks in advance.

Mind add env ARMCLIENT_VERBOSE = 1 and run command again. See if the Request Url on the output looks correct.

Hi @suwatch I tried again with this env.
The request URI showed is

GET /subscriptions/<subsID>/resources?=2&api-version=2018-05-01&=resourceType%20eq%20'Microsoft.Compute/virtualMachines' HTTP/1.1

which seems incorrect. How could I resolve this?