I'm looking for a way to filter virtual machine name which contains string "myvm" using Azure Python SDK. I tried the following way but it seems not to work
for vm in compute_client.virtual_machines.list_by_location(LOCATION):
print(vm.name)
if vm.name in "myvm":
the If condition seems not to be able to query in the list of virtual machines.