azure-storage

Azure blob sasToken “Signature did not match”

情到浓时终转凉″ 提交于 2019-12-12 01:37:00
问题 I was trying to upload an image to azure blob storage using createBlockBlobFromLocalFile . And I created the sasToken like what azure-storage-node instructed here. Here's my code for upload. module.exports = function(params) { var config = require('../../config/secrets'); var fs = require('fs'); var azure = require('azure-storage'); var controllers = {}; var blobSvc = azure.createBlobService(config.BLOB_LINK, config.BLOB_KEY); controllers.upload = function (req, res, next){ var fstream; req

Dynamically get the value of Azure blob property

穿精又带淫゛_ 提交于 2019-12-12 01:19:27
问题 Is there a way to get the property of Azure blob dynamically without explicitly mentioning it. Example, if I want to get the created date of blob then I need to write something like this CloudStorageAccount storageAccount = CloudStorageAccount.Parse("Storage Account") CloudBlobClient sourceBlobClient = storageAccount.CreateCloudBlobClient(); var sourceContainer = sourceBlobClient.GetContainerReference("Container Name"); var blockBlob = blobContainer.GetBlockBlobReference("Blob Name");

Where do I find my AccountSharedKey in Windows Azure?

大兔子大兔子 提交于 2019-12-12 01:15:23
问题 Its been awhile since I had used Azure and I forgot where to find my account shared key and I cannot find it on the portal. Where should I be looking? 回答1: https://windows.azure.com/Cloud/Provisioning/Default.aspx ... then select project name. 来源: https://stackoverflow.com/questions/1621161/where-do-i-find-my-accountsharedkey-in-windows-azure

Check if blob exists in Azure

与世无争的帅哥 提交于 2019-12-12 00:07:23
问题 I'm wondering if there is a way to check if a blob exists in a container? $blob = $blobRestProxy->getBlob("mycontainer", "myblobname"); if($blob){ return 'exists'; } else { return 'not exists'; } I've tried this but im getting this message whenever the blob does not exists: BlobNotFound The specified blob does not exist. If exists, the code returns 'exists' naturally. I'm not interested in listing all blobs in the container and iterating until I find a match cause I have a lot of blobs. 回答1:

Exception from loading Microsoft.WindowsAzure.Storage when creating a new HiveConnection

做~自己de王妃 提交于 2019-12-11 20:37:45
问题 I had this code working: ClusterDetails details return new HiveConnection( new Uri(details.ConnectionUrl), details.HttpUserName, details.HttpPassword, details.DefaultStorageAccount.Name, details.DefaultStorageAccount.Key); but when I updated the dlls through Nuget, I started getting this exception: {"Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest

How to download an Azure BLOB Storage file via URL

被刻印的时光 ゝ 提交于 2019-12-11 19:45:32
问题 We've created a folder structure on Azure Storage like below: parentcontainer -> childcontainer -> {pdffiles are uploaded here} We have the URL of the stored .pdf files. We don't want to hard code any container name, just download the file using its URL. Our current attempt at doing this: CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse(StorageConnectionString); CloudBlobClient blobClient = cloudStorageAccount.CreateCloudBlobClient(); CloudBlobContainer cloudBlobContainer =

How do I change the timeout value for Add-Blob Azure cmdlet?

南笙酒味 提交于 2019-12-11 19:05:06
问题 I'm trying to invoke Add-Blob Azure cmdlet Add-Blob -BlobType Block -FilePath $packagePath -ContainerName $blobContainerName and it has been working just fine until recently but now it fails with Operation could not be completed within the specified time. message. I suspect that for whatever reason the upload speed has got really low and so it just doesn't manage to upload the file fast enough. Is it possible to increase the timeout value for that operation? 回答1: Are you using the Cmdlets

Azure Table Storage, How to avoid connection error (I tried retry)

一世执手 提交于 2019-12-11 18:51:19
问题 I got lots of errors like No connection could be made because the target machine actively refused it 70.37.127.112:443 So I add Microsoft.Practices.TransientFaultHandling to retry. But still, lots of errors (even after retry) I like to know: 1st, since Azure is a distributed service, why am I always reach 70.37.127.112 ( I access storage by simple original DefaultEndpointsProtocol=https;AccountName=storage_account;....., then use tableContext.CreateQuery<datatype>("table_name"); ). I noticed

Approach for archive big files in azure storage

可紊 提交于 2019-12-11 18:28:33
问题 I'm interested in what is approach for storing of sensitive data in cloud in your projects. I want to prepare proof of concept of feature which have to archive files in Azure. We are talking about samething around 30GB of new files per day. 10-2000 MB per file. My first idea was to use Azure Storage to store those files. Files should be send to storage via Azure App Service so I have to prepare some WEBApi. Based on this idea I am curious if there wont be any problems with sending such a big

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature

独自空忆成欢 提交于 2019-12-11 17:27:06
问题 I noticed that my computer timezone was set to (UTC-08:00) Pacific Time (US & Canada) , so I changed it to (UTC+08:00) Kuala Lumpur, Singapore . And then when I open Azure storage explorer, it shows up the error below. I tried uninstalling Azure Storage Explorer, but the error still exist. 回答1: Are you sure your computer time in UTC is correct? By changing the time zones, did you by chance also change the time on the machine? 回答2: I found a solution here. http://technet.microsoft.com/en-us