azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

Search for a VM with input name

Open puneet101 opened this issue 8 years ago • 7 comments

What's the best way to search for a VM:

  • with exact name match (aka is only a hit for aka)
  • with "contains" in name input search string (aka is a hit for both maka and caka)
  • with a "tag" (filter the VMs with the tag, wow=1)

Going through each VM and doing a comparison is super slow. Is there a better find or search API interface with input name?

puneet101 avatar Dec 07 '17 02:12 puneet101

@anuchandy Any pointers?

puneet101 avatar Dec 07 '17 02:12 puneet101

@anuchandy Is this possible or not supported today? Thanks!

puneet101 avatar Dec 08 '17 22:12 puneet101

I checked this and fast lookup is not supported today by compute service. Only option is to enumerate the VM resources and look for the matching name.

anuchandy avatar Dec 09 '17 07:12 anuchandy

Ok, thanks! It will be nice to add this as a feature request.

Azure UI provides filtering option and it has to be some sort of index/search feature in the backend.

puneet101 avatar Dec 12 '17 20:12 puneet101

@puneet101 we'll enable this in SDK when compute service expose an API to look-up using various filters.

anuchandy avatar Jan 16 '18 17:01 anuchandy

I checked this and fast lookup is not supported today by compute service. Only option is to enumerate the VM resources and look for the matching name.

@anuchandy We are having trouble with this. The calls are timing out if the list has more than 50 VMs.

puneet101 avatar Mar 25 '18 19:03 puneet101

Cleaning up old issues from 2016 - 2018. Please let us know if this issue is still a concern.

Drewm3 avatar Sep 20 '19 00:09 Drewm3