API to list the VM info, and we found that if the VM is in deallocated status, the os_disk_size_gb is empty, we just want to confirm if this is by design ? If not please share that where is blocking?
Also confirm me if we have any pubic document availableif its by design ?
API running Compute managemen
Disks - Get - REST API (Azure Compute) | Microsoft Learn [learn.microsoft.com]
VM running
"deleteOption": "Delete",
"diskSizeGB": 30
===============================
VM deallocated
}, "deleteOption": "Delete" },
VM running state :
"osType": "Linux",
"name": "ubuntu22.04_OsDisk_1_4XXXXXXXXX",
"createOption": "FromImage",
"caching": "ReadWrite",
"managedDisk": {
"storageAccountType": "Standard_LRS",
"id": "/subscriptions/3XXXXXXXXXXX/resourceGroups/CENTRALINDIA/providers/Microsoft.Compute/disks/ubuntu22.04_OsDisk_1_4XXXXXXXXXXXXXXXX"
},
"deleteOption": "Delete",
"diskSizeGB": 30
VM deallocated state:
"osDisk": {
"osType": "Linux",
"name": "ubuntu18.04_OsDisk_1_f1XXXXXXXXXXX",
"createOption": "FromImage",
"caching": "ReadWrite",
"managedDisk": {
"id": "/subscriptions/3XXXXXXXXX/resourceGroups/CENTRALINDIA/providers/Microsoft.Compute/disks/ubuntu18.04_OsDisk_1_fXXXXXXXXXXXXXX"
},
"deleteOption": "Delete"
},