VmDiskDto CreateDiskDto(IVirtualMachineDataDisk disk, bool isOs)
        {
            var result = new VmDiskDto()
            {
                Name = disk.Name, CapacityGb = disk.Size, Category = isOs ? "os" : "data"
            };

            return(result);
        }
        async Task <VmDiskDto> CreateDiskDto(string diskId, bool isOs, CancellationToken cancellationToken)
        {
            var disk = await _azure.Disks.GetByIdAsync(diskId, cancellationToken);

            if (disk == null)
            {
                throw NotFoundException.CreateForAzureResourceById(diskId);
            }

            var result = new VmDiskDto()
            {
                Name = disk.Name, CapacityGb = disk.SizeInGB, Category = isOs ? "os" : "data"
            };

            return(result);
        }