Код: Выделить всё
BlobServiceClient blobServiceClient1 = new BlobServiceClient(connectionString);
BlobContainerClient containerClient1 = blobServiceClient1.GetBlobContainerClient(containerName);
var bname = "container/folder1/subfold1/abc.blob";
var blockBlobClient1 = containerClient1.GetBlockBlobClient(bname);
using (var uploadBlobStream = blockBlobClient1 .OpenReadAsync())
{
_sftp.Connect();
var blobPath = string.Format("{0}/{1}", remoteFilePath, "tst.txt");
_sftp.UploadFile(uploadBlobStream.Result, remoteFilePath, true);
_sftp.Disconnect();
}
Подробнее здесь: https://stackoverflow.com/questions/748 ... ainer-name