I have this method that upload files to blob storage 5-10 min before it is just working fine. suddendly it started to throw error :-
private async Task UploadFileToBlobStorage()
{
var filename = "AppId_2.zip";
var blobContainer = GetBlobClient.GetContainerReference("testwpclientiapcontainer");
await blobContainer.CreateIfNotExistsAsync(); // Error is coming at this line
var blob = blobContainer.GetBlockBlobReference(filename);
using (var filestream = Application.GetResourceStream(new Uri(filename, UriKind.Relative)).Stream)
{
await blob.UploadFromStreamAsync(filestream);
}
}
I have check my account and key and tried for other storage account too.
Error :-
Message : The remote server returned an error: Forbidden.
Source : Microsoft.WindowsAzure.Storage
does anybody know anything about it ?