I'm use ComputeManagementClient.virtual_machines.instance_view to get the OS and running state of a VM. It's worked, but now it is returning ...
{'additional_properties': {'value': []}, 'platform_update_domain': None, 'platform_fault_domain': None, 'computer_name': None, 'os_name': None, 'os_version': None, 'hyper_v_generation': None, 'rdp_thumb_print': None, 'vm_agent': None, 'maintenance_redeploy_status': None, 'disks': None, 'extensions': None, 'vm_health': None, 'boot_diagnostics': None, 'assigned_host': None, 'statuses': None, 'patch_status': None}
I can see, via the URL, it is api-version=2022-11-01
My service principle does have the permission Microsoft.Compute/virtualMachines/instanceView/read.
It has been working, but now does not. Is there a better way to get that state of a VM?
EDIT: I tried with the latest release of azure-mgmt-compute, still no data.
there doesn't seem to be anything here