diff --git a/sky/clouds/azure.py b/sky/clouds/azure.py index 8461be60e84..f90ceb0d459 100644 --- a/sky/clouds/azure.py +++ b/sky/clouds/azure.py @@ -527,6 +527,8 @@ def query_status(cls, name: str, tag_filters: Dict[str, str], if not stdout.strip(): return [] node_ids = json.loads(stdout.strip()) + if not node_ids: + return [] state_str = '[].powerState' if len(node_ids) == 1: state_str = 'powerState'