From 1bd73dd85498e77be8b78c0295ee79c07ed7c496 Mon Sep 17 00:00:00 2001 From: Zhanghao Wu Date: Mon, 1 Jul 2024 05:13:36 +0000 Subject: [PATCH] More detailed error message --- sky/provision/azure/instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sky/provision/azure/instance.py b/sky/provision/azure/instance.py index 46d49e2d00a..e2ea31a2781 100644 --- a/sky/provision/azure/instance.py +++ b/sky/provision/azure/instance.py @@ -176,7 +176,7 @@ def _get_vm_status(compute_client: 'azure_compute.ComputeManagementClient', # skip provisioning status if code == 'PowerState': return state - raise ValueError(f'Failed to get status for VM {vm_name}') + raise ValueError(f'Failed to get power state for VM {vm_name}: {instance}') def _filter_instances(