async Task <VmNicDto> CreateNicDto(string nicId, CancellationToken cancellationToken)
        {
            var nic = await _azure.NetworkInterfaces.GetByIdAsync(nicId, cancellationToken);

            if (nic == null)
            {
                throw NotFoundException.CreateForAzureResourceById(nicId);
            }

            return(CreateNicDto(nic));
        }
        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);
        }