azure-storage-blobs

How to check whether Azure Blob Storage upload was successful?

时间秒杀一切 提交于 2020-07-09 05:16:17
问题 I'm using an Azure SAS URL to upload a file to a blob storage: var blockBlob = new Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob(new System.Uri(sasUrl)); blockBlob.UploadFromFile(filePath); The file exists on my disk, and the URL should be correct since it is automatically retrieved from the Windows Store Ingestion API (and, if I slightly change one character in the URL's signature part, the upload fails with HTTP 403). However, when checking var blobs = blockBlob.Container.ListBlobs();

How to check whether Azure Blob Storage upload was successful?

≡放荡痞女 提交于 2020-07-09 05:15:11
问题 I'm using an Azure SAS URL to upload a file to a blob storage: var blockBlob = new Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob(new System.Uri(sasUrl)); blockBlob.UploadFromFile(filePath); The file exists on my disk, and the URL should be correct since it is automatically retrieved from the Windows Store Ingestion API (and, if I slightly change one character in the URL's signature part, the upload fails with HTTP 403). However, when checking var blobs = blockBlob.Container.ListBlobs();

how to watch a folder of Azure Storage Explorer BLOB

怎甘沉沦 提交于 2020-06-29 04:11:15
问题 we have some blob containers in Azure Storage, I would like to have a Dashboard with links to some specific folders e.g. to see at one glance the latest files in a specific folder of the Blob Container. At the moment it is only possible with some clicks, navigation down and sorting into the folder. I already tried to create a Metrics chart on the Dashboard, but it gives me only BLOB count and stats for the whole BLOB not for granular folders. Any ideas how to whatch specific folders

Unable to upload to blob storage, missing Access-Control-Allow-Origin header

情到浓时终转凉″ 提交于 2020-06-28 08:10:22
问题 Using the @azure/storage-blob module in the browser, it's not possible to upload to azure storage directly. It complains about a missing request header. The upload is done from within a ReactJS app running as an Office Add-in. As required by Microsoft, CORS have been enabled on storage account for blobs. I tried finding a way to add custom HTTP Headers however, none worked. Here's the upload code import { Credential, BlobServiceClient} from "@azure/storage-blob/browser/azure-storage-blob.min

“404 Resource Not Found” From Azure Blob Storage Document from PUT

依然范特西╮ 提交于 2020-06-25 07:23:09
问题 I'm attempting to do a PUT request to create a new BLOB. After some initial trouble with Authorization header, I am now getting a 404 Resource Not Found error when I attempt to PUT a file into a container. I feel rather certain that I have the URL right: https://accountNameHere.blob.core.windows.net/containerNameHere I have checked and re-checked to make sure that I'm including the container name and the account name, and they're both correct. What else could be causing this (aside from the

Check space used in azure storage accounts in my subscription

隐身守侯 提交于 2020-06-23 05:39:48
问题 How can I check how much space I used in each of my azure storage accounts in my subscription resource group wise. I am not able to find a way to check space used in azure storage account through PowerShell, CLI, portal... 回答1: Azure Storage size consist of all of 4 services (Blob, Queue,File, Table) altogether. Based on my knowledge, there are no ways to calculate the total size of all services for now. However, you could get blob space used on Portal by using Azure metrics. Please select

Check space used in azure storage accounts in my subscription

浪尽此生 提交于 2020-06-23 05:39:13
问题 How can I check how much space I used in each of my azure storage accounts in my subscription resource group wise. I am not able to find a way to check space used in azure storage account through PowerShell, CLI, portal... 回答1: Azure Storage size consist of all of 4 services (Blob, Queue,File, Table) altogether. Based on my knowledge, there are no ways to calculate the total size of all services for now. However, you could get blob space used on Portal by using Azure metrics. Please select

Azure CLI edit Content Type file property

徘徊边缘 提交于 2020-06-17 15:53:07
问题 I'm trying to update Content Type property of a file located in my Azure $web blob container using Azure CLI. I'm trying to do this because it's wrongly set and my service-worker.js (for my PWA) needs to have "application/javascript" instead of "text/plain; charset=utf-8" in order to be registered. 回答1: When using Azure cli, you should use az storage blob update. The sample code: az storage blob update --container-name xxx --name xxx --account-key xxx --account-name xxx --content-type

Azure CLI edit Content Type file property

微笑、不失礼 提交于 2020-06-17 15:50:27
问题 I'm trying to update Content Type property of a file located in my Azure $web blob container using Azure CLI. I'm trying to do this because it's wrongly set and my service-worker.js (for my PWA) needs to have "application/javascript" instead of "text/plain; charset=utf-8" in order to be registered. 回答1: When using Azure cli, you should use az storage blob update. The sample code: az storage blob update --container-name xxx --name xxx --account-key xxx --account-name xxx --content-type

Performance of Azure SDK v12 vs Storage Data Movement Library?

雨燕双飞 提交于 2020-06-17 09:45:06
问题 I know that the Storage Data Movement Library is supposed to be faster when uploading and downloading files to and from blob storage, but I am not seeing the performance benefits of it when compared to Azure SDK v12. I got an average of 37.463 seconds with Azure SDK v12 and 41.863 seconds using Storage Data Movement Library (SDML). Here is the code using SDML: namespace FunctionApp { using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.Storage; using Microsoft.Azure.Storage.Blob; using