azure-storage-blobs

How to clean an Azure storage Blob container?

女生的网名这么多〃 提交于 2019-11-29 10:49:58
问题 I just want to clean (dump, zap, del . ) an Azure Blob container. How can I do that? Note: The container is used by IIS (running Webrole) logs (wad-iis-logfiles). 回答1: A one liner using the Azure CLI 2.0: az storage blob delete-batch --account-name <storage_account_name> --source <container_name> Substitute <storage_account_name> and <container_name> by the appropriate values in your case. You can see the help of the command by running: az storage blob delete-batch -h 回答2: There is only one

Copy file from URL to Azure BLOB

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 07:52:14
I have a file at a remote url such as http://www.site.com/docs/doc1.xls and i would like to copy that file onto my BLOB storage account. I am aware and know of uploading files to a BLOB storage but wasn't sure how this can be done for a file from remote URL. Try looking at CloudBlockBlob.StartCopyFromBlob that takes a URI if you are using the .NET client library. string accountName = "accountname"; string accountKey = "key"; string newFileName = "newfile2.png"; string destinationContainer = "destinationcontainer"; string sourceUrl = "http://www.site.com/docs/doc1.xls"; CloudStorageAccount csa

FTP to Azure Blob Storage

做~自己de王妃 提交于 2019-11-29 07:37:37
问题 I had to setup secure FTP to Azure Blob Storage using popular FTP clients (like FileZilla, for example). After doing lot of research, I came across a link that says: Deployed in a worker role, the code creates an FTP server that can accept connections from all popular FTP clients (like FileZilla, for example) for command and control of your blob storage account. Following the instructions of the link, I had implemented the same and deployed the worker role on Azure production environment and

Azure Storage: 403 Server failed to authenticate the request

你离开我真会死。 提交于 2019-11-29 06:35:20
I've search here and in Google but I can't find a solution. With my C# code I want to read a file from Azure Storage Blob. The code (only 6 line) works very well in another project (Windows 8.1 Universal App) but not in my new Windows 10 UWP App. This is my code: CloudStorageAccount storageAccount = CloudStorageAccount.Parse(azureConnectionString); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer container = blobClient.GetContainerReference("container-name"); CloudBlob b1 = container.GetBlobReference("27.76914.json"); StorageFile file = await

Azure Blob 400 Bad request on Creation of container

浪尽此生 提交于 2019-11-29 02:50:18
I'm developing an ASP.Net MVC 4 app and I'm using Azure Blob to store the images that my users are going to upload. I have the following code: var storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnection"].ConnectionString); var blobStorage = storageAccount.CreateCloudBlobClient(); //merchantKey is just a GUID that is asociated with the merchant var containerName = ("ImageAds-" + merchant.merchantKey.ToString()).ToLower(); CloudBlobContainer container = blobStorage.GetContainerReference(containerName); if (container.CreateIfNotExist()) { //Upload the

How to deploy a simple static micro site on Microsoft Azure

…衆ロ難τιáo~ 提交于 2019-11-29 00:08:03
问题 I plan to move all my websites from my own baremetal server to Microsoft Azure. To get things started I want to do a POC and deploy a very simple static microsite - a single html page with some css/img/js resources. How does one go deploy a simple static website? I can see options for simple CMS type sites, but nothing for the most basic of sites. 回答1: While there are several options as mentioned Brents answer (and comments), I find one simple option as easiest. Create a website from the

Azure Functions: configure blob trigger only for new events

﹥>﹥吖頭↗ 提交于 2019-11-28 23:29:20
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? 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). That's why your existing blobs are being processed - they don't have receipts. BlobTrigger is currently

Differences between Azure Block Blob and Page Blob?

余生颓废 提交于 2019-11-28 16:30:38
As I recently started mingling around with Windows Azure , I've came up to a situation where, which one to go for between the Block Blob & Page Blob . I'm currently in progress of uploading some text, csv or dat files to a blob storage and then do a MapReduce program for it using my C# program. Yes I've gone through some articles such as article1 , article2 . But couldn't get a clear idea from them. To cut short, Block Blob vs Page Blob . Any help would be appreciated. The differences are very-well documented on msdn, here . TL;DR: Block blobs are for your discrete storage objects like jpg's,

Azure, best way to store and deploy static content (e.g. images/css)?

孤人 提交于 2019-11-28 16:29:49
问题 We're about to deploy our .NET web application to an Azure Web Role. I'm just wondering how others have handled their static content, specifically images and css? At the moment our application package is about 25mb but 18mb of that is derived purely from images, things like navigation buttons, icons and template components that rarely ever get updated. Would it be wise to partition this out of the deployment package and move it to blob storage? I have a few doubts about this approach that I'm

Azure Blob Storage vs. File Service [closed]

喜欢而已 提交于 2019-11-28 15:36:56
Please correct my wrongs. From my reading on the topic so far, it appears to me that both, Azure Blob Storage and File Service offer the ability to store file(s) and folder(s) (I understand that blobs can store any binary object, but any serialized binary stream is just a file at the end of the day) in a hierarchical structure that mimics a file system. Only the API to access them are slightly different in that the File Service allows you to query the source using Win32 File I/O like functions as well in addition to using the REST API. Why would you choose one over another if you wanted your