I have this code that prints information related to VM. The output is in the class type. How can I convert it to a form so that I can understand it?
from azure.common.credentials import ServicePrincipalCredentials
from azure.mgmt.compute import ComputeManagementClient
credential = ServicePrincipalCredentials(client_id='XXXX',
secret='XXXX', tenant='XXXX')
compute_client = ComputeManagementClient(
credential, 'XXXX')
for vm in compute_client.virtual_machines.list_all():
print(vm.storage_profile)
I am getting output in the form. It is showing the class type of this output
<'azure.mgmt.compute.v2019_03_01.models.storage_profile_py3.StorageProfile'>