When trying to add capacity to an existing datastore or trying to create a new datastore, none of the device show up in the window.
Even though there are not consumed hard disks presented on the host, we do not see any of the devices when trying to create datastores.
vSphere ESXi 7.x
vSphere ESXi 8.x
This can happen if the drives have existing partition table details and are re-purposed:
As we can see in the above image, the drive even though it shows not consumed, it has partition table details present
Take confirmation from the customer and then erase the partitions present on the device.
We can do this using the 'erase partitions' button as shown in the below image:
Once the partition is cleared, we should be able to create a new datastore or add capacity to the existing datastore using this disk.
Please Note: Once the partition table is deleted, there is no way to get it back. Kindly consult with the customer before erasing the partition.