I'm trying to download a file from Azure blob and save it locally, but it seems to fail. Here's the relevant code:
var blobClientCode = client.CreateCloudBlobClient();
string codeUri = "https://???.blob.core.windows.net/...../mycode.exe";
using (var codeContent = File.OpenWrite("C:\\code.exe")) {
blobClientCode.GetBlockBlobReference(codeUri).DownloadToStream(codeContent);
}
I get an error in which the container doens't exist. What am I doing wrong?