azure-storage-blobs

403 error in production from WindowsAzure.Storage

蓝咒 提交于 2019-11-28 13:20:23
I have a WebForms app that uses the WindowsAzure.Storage API v3. It works fine in development and in one production environment, but I'm rolling out a new instance and any code that calls out Azure Blob Storage gives me a 403 error. I've been fiddling with this for awhile, and it fails on any call out to Blob Storage, so rather than show my code I'll show my stack trace: [WebException: The remote server returned an error: (403) Forbidden.] System.Net.HttpWebRequest.GetResponse() +8525404 Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync(RESTCommand`1 cmd, IRetryPolicy policy,

Azure Function - Resize image stored in a blob container

拈花ヽ惹草 提交于 2019-11-28 12:43:17
I've answered this question related to Azure Webjob and Resizing a image stored as a blob and so I am trying to do the same using a Function App Each time a new blob is uploaded, I send a a new queue message. My function is triggered by the queue message and bind to the uploaded blob. I also have a second input binding that binds to another CloudBlobContainer to be able to upload new resized images to another blob container. My function looks like that: #r "System.Web" using System.IO; using System.Web; using ImageResizer; using Microsoft.Azure.WebJobs; using Microsoft.WindowsAzure; using

How to query Cloud Blobs on Windows Azure Storage

喜夏-厌秋 提交于 2019-11-28 09:39:13
I am using Microsoft.WindowsAzure.StorageClient to manipulate blobs on Azure storage. I have come to the point where the user needs to list the uploaded files and modify/delete them. Since there are many files in one container, what is the best way to query azure storage services to return only the desired files. Also, I would like to be able to return only specific number of blobs so I can implement paging. There is a method called ListBlobs in the CloudBlobContainer, but it seems like it's returning all of the blobs in the container. That will not work for me. I searched a lot on this topic

Azure Logic Apps - Get Blob Content - Setting Content type

点点圈 提交于 2019-11-28 09:19:02
问题 The Azure Logic Apps action "Get Blob Content" doesn't allow us to set the return content-type. By default, it returns the blob as binary (octet-stream), which is useless in most cases. In general it would be useful to have text (e.g. json, xml, csv, etc.). I know the action is in beta. Is that on the short term roadmap? 回答1: Workaround I found is to use the Logic App expression base64ToString. For instance, create an action of type "Compose" (Data Operations group) with the following code:

Upload file to Azure Blob Storage directly from browser?

房东的猫 提交于 2019-11-28 06:25:47
Is it possible to create an html form to allow web users to upload files directly to azure blob store without using another server as a intermediary? S3 and GAW blobstore both allow this but I cant find any support for azure blob storage. Do take a look at these blog posts for uploading files directly from browser to blob storage: http://coderead.wordpress.com/2012/11/21/uploading-files-directly-to-blob-storage-from-the-browser/ http://gauravmantri.com/2013/02/16/uploading-large-files-in-windows-azure-blob-storage-using-shared-access-signature-html-and-javascript The 2nd post (written by me)

How to set content disposition on individual azure blob requests?

一笑奈何 提交于 2019-11-28 06:05:22
问题 I have an application that hosts videos, and we recently migrated to Azure. On our old application we gave the ability for users to either play or download the video. However on Azure it seems like I have to pick between which functionality I want, as the content disposition has to be set on the file and not on the request. So far I have came up with two very poor solutions. The first solution is streaming the download through my MVC server. CloudStorageAccount storageAccount =

Javascript download a URL - Azure Blob Storage

故事扮演 提交于 2019-11-28 05:00:59
问题 I am using Azure Blob Storage, and I want users to be able to download files. When a user clicks a file they want to download, I use AJAX to generate a shared access signature and return the URL to download from. Is there any way for me to then, using Javascript, download the file? Or is there some other method I can use... I also would like it to not run server side, as there is no reason to incur unnecessary cost when I should be able to download directly from the URL... Basically, how

Copy file from remote server using SFTP straight to Azure blob storage

六月ゝ 毕业季﹏ 提交于 2019-11-28 03:36:41
问题 I've got a remote server with a bunch of static files (outside of Azure). I've created a worker role in Azure and I want to use the worker role to transfer these files using SFTP from my remote server straight to my blob storage account (without copying locally to the worker role). Is there an established workflow/best practices on how to do this? The closest thing I was able to find was this question: Copy file from URL to Azure BLOB However to use StartCopyFromBlob I would need to have a

Azure Functions: configure blob trigger only for new events

社会主义新天地 提交于 2019-11-27 21:01:07
问题 I have about 800k blobs in my azure storage. When I create azure function with a blobTrigger it starts to process all blobs that I have in the storage. How can I configure my function to be triggered only for new and updated blobs? 回答1: There is no way to do this currently. Internally we track which blobs we have processed by storing receipts in our control container azure-webjobs-hosts . Any blob not having a receipt, or an old receipt (based on blob ETag) will be processed (or reprocessed).

How to integrate NLog to write log to Azure Streaming log

旧巷老猫 提交于 2019-11-27 20:57:00
问题 Currently I am using NLog to write my application errors to a text file. How can I configure NLog to write the error messages to Azure Streaming Log apart from writing to a Azure Blob Storage? 回答1: the Azure Streaming Log captures what is sent to the Trace interface. If you configure NLog to send to that target, you can then easily access that through the output window in Visual Studio for instance. Here is how I configured NLog.config to obtain this result: <targets> <target xsi:type="File"