azure-storage

Azure CloudBlockBlob.DeleteIfExists() - Does false always mean the blob doesn't exist?

血红的双手。 提交于 2019-12-24 00:26:06
问题 I know that CloudBlockBlob.DeleteIfExists() returns true if the blob exists and false when it does not. However I'm curious the know what happens if the blob does exist, but something goes wrong in Azure which causes the file deletion to not occur (I can't find any documentation on that behavior). My concern is that it will return false instead of throwing some kind of exception, so I'll believe the blob is deleted, when it's actually still there. In short, if I get a value of false back,

StorageClient does not exist in the namespace using Microsoft.WindowsAzure

﹥>﹥吖頭↗ 提交于 2019-12-23 18:48:47
问题 This code was working previously but on updating nuget packages something seems to have gone awry. If I add in the Microsoft.WindowsAzure.StorageClient dll that had previously been deployed then it is not recognising the Cloud classes such as CloudBlobClient which I am using WindowsAzure.Storage nuget 4.2 I need this to be able to write to azure file services so cannot simply uncomment 回答1: Microsoft.WindowsAzure.StorageClient namespace does not exist in the new Microsoft.WindowsAzure.Storage

Azure Functions with blob storage. How to create a BlobTrigger to a sub-folder?

大城市里の小女人 提交于 2019-12-23 17:19:01
问题 I need to react to a blob that's added into a sub-folder. I know that blob storage doesn't recognize the folders, they are just virtual, but I still can't figure out how to create a blob trigger if files are added to sub-folders. Example: Excerpt from function.json : { "name": "myblob", "type": "blobTrigger", "direction": "in", "path": "rootContainer/{name}" } OK, a function is triggered and I receive the blob Excerpt from function.json : { "name": "subfolder/myblob", "type": "blobTrigger",

Azure Table Storage Partition Key

旧街凉风 提交于 2019-12-23 12:23:23
问题 Two somewhat related questions. 1) Is there anyway to get an ID of the server a table entity lives on? 2) Will using a GUID give me the best partition key distribution possible? If not, what will? we have been struggling for weeks on table storage performance. In short, it's really bad, but early on we realized that using a randomish partition key will distribute the entities across many servers, which is exactly what we want to do as we are trying to achieve 8000 reads per second. Apparently

How do SQL Azure and Azure Table Storage compare? [closed]

帅比萌擦擦* 提交于 2019-12-23 11:46:41
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Currently I have a prototype that runs in IIS on my local machine and uses SQL Server Express 2005 for storing data in three SQL

Connection pooling on Azure Storage

此生再无相见时 提交于 2019-12-23 09:31:53
问题 I'm starting to use Azure Storage to save files to blobs on my application. Since my application could be accessing different containers on different storages I would like to know how to implement a connection pool that will optimize resources. I want to keep the connection open to the different containers instead of opening a connection each time I try to download a blob Can anyone provide me with the best approach to achieve this? Thanks 回答1: Simple answer to your question is that you can't

Azure Blob and Queue Thread Safety

旧城冷巷雨未停 提交于 2019-12-23 09:22:15
问题 I need some help in understanding the thread safety in azure CloudBlobClient, CloudQueueClient and CloudBlob classes. I am developing a worker role which includes multiple independent job processors where each of these job processors read from a specific queue and write/update to some blob containers which may be the same. I want to make sure that these job processors are not stepping on each other toe. 1> How can I make sure that this is the case without using any kind of lock? If I assign a

Windows Azure: Delete disk attached to non-existent VM

和自甴很熟 提交于 2019-12-23 09:00:43
问题 Just found out I was taking up - and paying for - a lot of storage due to abandoned disks from long ago deleted VMs. I manged to delete most of them, but now I'm stuck with a set that cannot be deleted as they remain attached to VMs nowhere to be found. Any ideas how to get rid of these disks, PowerShell tricks maybe? 回答1: If I am understanding correct, Once you delete a Virtual Machine, it delete the service but keep a copy of the VHD image under Disks. So please go to the Disks tab under

How do I serialize a .NET object into Azure Blob Storage without using a temporary file?

怎甘沉沦 提交于 2019-12-23 08:03:25
问题 I want to store a .NET object into Azure Blob Storage. Currently I serialize it into an XML file using TextWriter ( episodeList is the object I want serialized): XmlAttributeOverrides overrides = new XmlAttributeOverrides(); XmlAttributes Xmlattr = new XmlAttributes(); Xmlattr.XmlRoot = new XmlRootAttribute("EPISODES"); overrides.Add(typeof(List<EpisodeData>), Xmlattr); XmlSerializer serializer = new XmlSerializer(typeof(List<EpisodeData>), overrides); TextWriter textWriter = new StreamWriter

What is the maximum file size which i can upload to azure blob uploadfile method

亡梦爱人 提交于 2019-12-23 07:46:37
问题 Please can i know what the maximum file size to upload to the azure storage blob using uploadfile api. 回答1: Block Blobs originally had a maximum size of 200GB (with 4MB block size), and now may be up to 4.77TB (with new 100MB block size). Maximum number of blocks per blob: 50,000. Take a look at operations on Block Blobs for more information about the REST API calls (including Put Block and Put Block List ) 回答2: Update: as of December 2016 the maximum size of a Block Blob has increased to