I have a organization internal fileshare which is NAS(Network attached storage) based. I need to watch fileshare subfolder and what ever files or folders added to it should be reflected in azure storage container.
I tried below,
BlobServiceClient blobServiceClient = new
BlobServiceClient(_settings.BlobSconnectionString);
// Create the container and return a container client object
BlobContainerClient containerClient =
blobServiceClient.GetBlobContainerClient(containerName);
// Get a reference to a blob
BlobClient blobClient = containerClient.GetBlobClient(fileName);
Console.WriteLine("Uploading to Blob storage as blob:\n\t {0}\n", blobClient.Uri);
// Upload data from the local file
await blobClient.UploadAsync(localFilePath, true);
this solution seems to work only for local machine files
But not sure above solution is correct because it is FTP and my file share is NAS based. so connection failed.
any idea how to do this?