I am using Azure.Storage.Blobs v12.6.0.0 with a small project that upload a file once a day to azure blob storage, but I have not been able to upload large files.
Actually I am testing with 249MB file using the below code and it fails. If the file is small it get uploaded with no issue but with the large file after it starts to upload it fails after about 10 minutes with the error Retry failed after 6 tries.
My internet speed is 40Mbps
Here is the code I use (it is VB.net in Visual Studio 2019):
Using fStream As FileStream = File.OpenRead(fPath)
Dim credential As New StorageSharedKeyCredential("account", storageAccountKey)
Dim serviceURI As New Uri("https://name.blob.core.windows.net/")
Dim blobSC As New BlobServiceClient(serviceURI, credential)
Dim blobContainer As BlobContainerClient = blobSC.GetBlobContainerClient("files")
Dim blob As BlobClient = blobContainer.GetBlobClient(fName)
Dim t As Task = blob.UploadAsync(fStream, True, Threading.CancellationToken.None)
t.Wait()
End Using
Thanks in advance for any help.