FAQ Database Discussion Community


Signature did not match on generated Azure SAS download link?

python,azure,windows-azure-storage
I've been trying to get the shared access signature working for Azure Blob Storage as I want to provide time limited downloads. For that I currently use a PHP script that calls a Python script on the Azure Websites service. This is the way I call it to test things:...

Authentication Failure when trying to list shares in Azure Files service using PowerShell

c#,powershell,azure,windows-azure-storage,hmac
I am trying to authenticate to Azure Files Preview using PowerShell by hitting the REST API with Invoke-RestMethod. I am doing my best to follow the instructions provided here: https://msdn.microsoft.com/en-us/library/azure/dd179428.aspx This is my script: $accountname = "testaccount" $xmsdate = get-date $xmsdate = $xmsdate.addhours(6) $xmsdate = $xmsdate.toString('r') $accesskey = 'lfksZQh0nasdfasd0KeMI+1alslv8ukK39Rsoelsldiq1r+zed9r4bH5uRyba+/QCwwvdGotw==' $message...

List Files in Azure Blob Storage

azure,windows-azure-storage,azure-storage-blobs
I am trying to list all the jpg files in my blob. When I use this code CloudStorageAccount storageAccount1 = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("ConnString")); CloudBlobContainer container1 = blobClient.GetContainerReference(imageFolder); var blobs = container1.ListBlobs(); All the files in that particular blob are listed I have tried to modify the above code but the modified code...

Temporary storage for Azure WebSites

caching,azure,windows-azure-storage,azure-web-sites,temporary
I want to cache some cropped images and serve them without calculating them again in a Azure WebSite. When I used the Azure VM I was just storing them at the D drive (temporary drive) but I don't know where to store them now. I could use the Path.GetTempPath but...

Azure downloadtostreamasync method hangs

c#,asynchronous,windows-azure-storage,azure-storage-blobs,asp.net-4.5
here is the offending code public async static Task<MemoryStream> AsyncReadBlob(string identifier) { CloudStorageAccount storageAccount = CloudStorageAccount.Parse(storageString); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer container = blobClient.GetContainerReference(containerName); MemoryStream memstream = new MemoryStream(); CloudBlockBlob blockBlob = container.GetBlockBlobReference(identifier); await blockBlob.DownloadToStreamAsync(memstream); return memstream; } Basically, the...

Auto generation of thumbnails or preview of images when posting to Azure blob storage

azure,windows-azure-storage,azure-storage-blobs
I am posting pictures to Azure blob storage. As I am storing full resolution images, I want to maintain a separate collection(s) of thumbnails(or previews) of the images. Is it possible to write a script(or a hook) where when an image is uploaded to the blob storage, the thumbnail of...

Images in Azure storage

azure,windows-azure-storage
Where would it be appropriate to store structured photos in Azure storage? There a ton (millions) of photos and they are currently sitting in folders locally. I originally looked at blob storage to hold them, but that is for unstructured data; then I looked at table storage, but I'm not...

How can I tell how full an Azure Storage account is?

azure,windows-azure-storage
Is there any way of determining the used and/or remaining capacity of an Azure Storage account? I know that the current size limit is 100TB per storage account and I'm looking for either number of bytes used/remaining or, failing that, percentage used/remaining. However I can't see any way of monitoring...

Azure Storage Queue - long time to process

azure,windows-azure-storage,azure-worker-roles,azure-storage-queues
I need to generate quite a number of reports and a report can take about 5 minutes to be generated, large amount of data, many different sources. The client will post messages to an Azure Storage Queue. There is a worker roles that processes the messages and generates the reports....

Changing version of Azure Storage

azure,windows-azure-storage
I am a beginner in Azure and have come across a task to change the storage version.I basically found that the versions are obsolete and need to upgrade them as per http://blogs.msdn.com/b/windowsazurestorage/archive/2014/08/05/microsoft-azure-storage-service-version-removal.aspx So, in one of the paragraphs its mentioned "What to change If you find any log entries which...

Semantic logging In-Proc and Out-Proc

azure,logging,sql-azure,windows-azure-storage,semantic-logging
I'm using Semantic logging with Windows Azure Websites, I wonder Using Semantic logging using Azure website and store log in Azure Table storage and Azure SQL db is Inproc or out Proc ? Can anyone elaborate more on this please?...

Azure StorageException is inaccessible due to its protection level

c#,azure,visual-studio-2013,windows-store-apps,windows-azure-storage
Looks like something wrong with my VS2013, because this code: try { TableResult tblr = await cloudTable.ExecuteAsync(...); } catch ( StorageException ex ) { Debug.WriteLine( ex.Message ); } Gives me this error: Microsoft.WindowsAzure.Storage.StorageException is inaccessible due to its protection level Everything else is working well in this windows store project....

log4net not working using log4net appender azure in MVC applcation

asp.net-mvc,azure,log4net,windows-azure-storage,log4net-appender
same log4net appender azure nuget code working fine for console app, but not working in MVC application. I'm using this nuget log4net.Appender.Azure 1.1.1 already added log4net.Config.XmlConfigurator.Configure(); in Global.asax web.config <log4net> <!-- Azure Table Appender, uncomment, set proper QueueName and AWS credentials (appSettings) to try it out --> <appender name="AzureAppender1" type="log4net.Appender.AzureTableAppender,...

How do I store my Log into Azure table storage I used Semantic Logging

azure,windows-azure-storage,azure-web-roles,azure-storage-blobs,semantic-logging
For application logging i have used Semantic Logging but I want to save logging into Azure table storage , now I just displayed it on Console. static void Main(string[] args) { //create a listner and subscribe to event source var listener1 = ConsoleLog.CreateListener(); MyEventSource Log = new MyEventSource(); listener1.EnableEvents(Log ,...

Azure : HOWTO/BEST-Practice : Publish WebApp with Webjob using blobs Q's to multiple destinations?

visual-studio,azure,windows-azure-storage,publish
I have a webapp that I publish from VS. I have 3 publishing profiles (Test, Demo and Production). Each targets a different server on Azure, with it's own SQl behind it. I added a webjob using Queue's and Blob-storage. Again for test, demo and production I create 3 different storage...

Azure Block Blob Storage file upload strange issue

azure,windows-azure-storage,azure-storage-blobs
I' m using Azure Block Blob Storage to keep my files. Here is my code to upload file. I m calling the method twice as below for the same file in the same request; The first call of the method saves the file as expected but the second call saves...

Azure queue - return timed out messages to the head of the queue

azure,windows-azure-storage,windows-azure-queues
When a message is retrieved from an azure queue but not deleted from it, the messages visibility timeout expires and the message is (re)added to the end of the queue. Is there a way to return such messages to the head of the queue instead? ...

Azure - is one 'block blob' seen as one file?

azure,windows-azure-storage,azure-storage-blobs
Question background: This may be a simple question but I cant find an answer to it. I've just started using Azure storage (for storing images) and want to know if one 'blob' holds a maximum of one file? This is my container called fmfcpics: Within the container I have a...

Getting error 400 bad request when accessing Azure blob storage - all latest components

azure,windows-azure-storage,azure-storage-blobs
I am running in to the "400 bad request" error that many have posted about when accessing Azure blob storage. Most of the fixes relate to updating versions of the Azure SDK and of the Storage Emulator from late '13 or '14, but there have been several subsequent releases since...

how to change web.config when upgrading to Microsoft.WindowsAzure.StorageClient 4.3

windows-azure-storage
I'd like to know how to change web.config when upgrading to Microsoft.WindowsAzure.StorageClient 4.3. Current web.config is like <assemblyIdentity name="Microsoft.WindowsAzure.StorageClient" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.7.0.0" newVersion="1.7.0.0" /> ...

Azure NextMarker

azure,windows-azure-storage,azure-storage-blobs
I have created a container in Azure called files. It has 3 images and 2 txt files. https://attosolstorage.blob.core.windows.net/files?comp=list With the URL listed above, NextMarker will be empty. If I use the following URL.. https://attosolstorage.blob.core.windows.net/files?comp=list&maxresults=1 It shows the NextMarker field populated, and what I understand from this article is that using...

Azure Storage Parse Blob into Table

azure,windows-azure-storage,azure-storage-blobs,azure-webjobs,azure-table-storage
I'm really new to WebJobs and I'm struggling with something that would seem trivial. I have a storage account called "mydatastorage", and a container called "mydatacontainer". I have been scouring the web for a week now trying to do the following basic scenario: I have a large number of blobs...

Should I use Blob storage or Azure VM storage for files?

transactions,asp.net-mvc-5,storage,windows-azure-storage,azure-virtual-machine
I am coding a MVC 5 internet application that is being stored on an Azure VM. In this internet application, user can upload files such as images and videos that can be accessed by the public via a url. My question is this: Should I store this uploaded data in...

Uploading Image to Azure Blob using File Uploader in ASP.NET?

c#,asp.net,.net,azure,windows-azure-storage
I need to allow a user to specify an image that needs to be uploaded to the Azure DB instead of hard coding the Image Path like all the tutorials out there. This is what I have so far: <asp:FileUpload ID="imageUploader" runat="server" /> <asp:Button ID="uploadBtn" runat="server" Text="Upload Image" class="btn btn-success...

How do I implement synchronous copying of a single blob in Azure SDK that only has StartCopyFromBlob()?

c#,.net,windows-azure-storage,azure-storage-blobs,azure-sdk-.net
Earlier versions of Azure SDK had CloudBlob.CopyFromBlob() which was synchronous and which we use in our code. We now need to move to SDK 2.4 and there's no such method there, instead there's CloudBlockBlob.StartCopyFromBlob() that returns some magic token which we can use to check how the copy is being...

Start-AzureStorageBlobCopy vs AzCopy: which one takes lesser time

azure,windows-azure-storage,azure-powershell
I need to move vhds from one subscription to other. I would like to know which one is better option for the same: Start-AzureStorageBlobCopy or AzCopy? Which one takes lesser time ?...

Uploading a StorageItemThumbnail to Azure blob storage from a Windows Universal app

azure,windows-runtime,windows-azure-storage,win-universal-app,storagefile
I am building a Windows Universal app. I have a Windows.Storage.FileProperties.StorageItemThumbnail obtained from a Windows.Storage.StorageFile as the result of a call to StorageFile.GetThumbnailAsync. Now I need to upload the thumbnail to Azure blob storage. The correct method appears to be UploadFromFileAsync or UploadFromStreamAsync on Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob. But the only documentation I...

Alerts for exceptions in an Azure worker role

azure,windows-azure-storage,azure-worker-roles,azure-diagnostics,windows-azure-diagnostics
Is there an easy way to send an alert or notification in the Azure Management portal if a worker role throws an exception or has an error? I am using Azure 2.5 I have tracing and diagnostics all set up and can view the logs in the server explorer of...

azure media services from blob storage

azure,windows-azure-storage,azure-storage-blobs,azure-media-services
I find some relevant answers but none that explains if I really need all the code from the Azure Media Services teams example at https://azure.microsoft.com/en-us/documentation/articles/media-services-copying-existing-blob/ I just want to upload a file from blob to Azure Media Services. Like this: var uploadFilePath = blobUrl; var uploadAsset = _context.Assets.Create(Path.GetFileNameWithoutExtension(uploadFilePath), AssetCreationOptions.None); var...

From IQueryable to TableQuery

.net,vb.net,linq,windows-azure-storage
Using Azure Storage 4.3.0 and in order to use CloudTable.ExecuteQuerySegmentedAsync (TableQuery, TableContinuationToken) I need to transform my LinQ predicate filter condition in a TableQuery, how can I do that? in VB.NET Dim q = MyTable.CreateQuery(Of MyEntity).Where(Function(e) e.PartitionKey = "MyPK") 'Where do I go from here to use ExecuteQuerySegmentedAsync? ...

Azure DIagnostics, WADLogs, Viewing in Azure Management Portal

azure,windows-azure-storage,azure-worker-roles,azure-diagnostics,windows-azure-diagnostics
This may be an extremely stupid question I am new to Azure. I am using Azure SDK 2.5 I have a worker role deployed to staging on Azure and I'm, using the diagnostics to trace the execution. Trace.TraceInformation("Service WorkerRole has stopped"); Is there a way to view the WadLogs file...

CORs rule not found when putting data in azure storage

ajax,cors,windows-azure-storage
So I have a site where I upload large video files using html 5 to azure storage using an sas signature. It seems to work fine on most systems and browsers but doesn't seem to work on iPhones. I finally routed the call through fiddler via proxy and got the...

Azure Storage and Service Bus - One Connection per Asp.Net Application or per Request?

azure,windows-azure-storage,azure-storage-blobs,azureservicebus,azure-servicebus-queues
I was wondering whether anyone knows specifically what the best practice is for using and potentially sharing or creating new connections from an Asp.Net Web Application to Azure Storage and -ServiceBus? Basically the Asp.Net application receives file uploads, stores them in an Azure Storage Blog and sends a message to...

Querying Azure Storage - Code issues

c#,azure,windows-azure-storage,azure-storage-tables
I am having a problem with the first few lines of code that setup an Azure Table Storage Query. My code is: CloudStorageAccount account; string CloudStorageAccountName = ConfigurationManager.AppSettings["StorageConnectionString"]; // Create the table client. Microsoft.WindowsAzure.StorageClient.CloudTableClient tableClient = account.CreateCloudTableClient(); // conflicting // Create the CloudTable object that represents the "people" table. CloudTable...

Default Value in Azure Storage

c#,windows-azure-storage
I am defining a property in my Azure Model and I want a default value for it. What I am doing is this [DefaultValue(true)] public Boolean SmsNotification { get; set; } The default value remains to be False. Can anyone tell me how to fix that?...

Azure blob storage as a website images source

.net,asp.net-mvc,azure,windows-azure-storage,azure-storage-blobs
In my web application (MVC5, hosted at Azure Websites) users can upload their profile images. These images are than displayed publicly on the website. As the website is hosted on Azure I decided to give Azure Storage a try. I created a public container and I upload the the images...

Azure Worker Role Scaling

azure,windows-azure-storage
I am using an Azure Storage Queue and associated Worker Role to integrate a legacy system with a new system. In brief, the legacy system sends application details to the queue, and the application details include a status such as "Pending", "Approved", "Cancelled" and "Completed". The same application can be...

Unable to copy blobs from one container to another

azure,windows-azure-storage,azure-storage-blobs
I am creating a console app that copies all blobs in all containers from an account we use for production to another we use for development. I have the following method to do this. The 'productionStorage' and 'developmentStorage' objects are in another assembly where Azure storage client methods are housed....

Give read only access to an azure table

azure,windows-azure-storage,azure-storage-tables
I need to give read-only access to a third party to one of our Azure tables. Is there a clean, simple way of doing that or should I clone the table? If so, how do I clone the table? Edit: Here's the documentation on how to do it in Java....

Windows azure publish fails 500 internal Server Error

asp.net,azure,windows-azure-storage,publish,azure-sdk-.net
I have a cloud service on Windows Azure, I created a Asp.net WebAPI project and published to the cloud service, that was working fine from Visual Studio to publish before i updated visual studio to update 4 and azure SDK 2.2 to 2.6. But after updating when I publish, I...

How to clear pending message from azure service bus?

azure,windows-azure-storage,azure-servicebus-queues
I am using azure service bus for receiving message to processing my background process. In my background process I want to clear already processed messages from azure service bus. Is there any way or method to clear azure service bus messages???

Does TableQuery support OrderBy?

c#,azure,odata,windows-azure-storage
I can't figure out how to add a OrderBy clause to a TableQuery with Azure Table Storage. According to their documentation Azure supports OData $orderby. If I try to hack it by adding $orderby=PartitionKey to the TableQuery Where clause the '$' is HTTP-encoded and I get a 400 server error...

Continuing cost of storage for hosted solution

azure,amazon-web-services,amazon-s3,windows-azure-storage
I've searched by can't find anything, but looking at Azure Storage and AWS S3, the rate at which you're billed is based on how much storage is used; most of these measurements are on a per month basis. Does this mean there is a one time charge for the storage...

Does calling CloudBlobContainer.GetBlockBlobReference do any network communication?

c#,azure,windows-azure-storage,azure-storage-blobs
I have a class with a readonly CloudBlobContainer, and functions to do operations on CloudBlockBlobs inside. If I want to do multiple operations on a CloudBlockBlob, would I avoid unnecessary network activity (and the associated slowdown) if I only get the CloudBlockBlob reference once and pass it around to the...

Azure Storage Explorer not Responding on HDIsight Node Container

azure,windows-azure-storage
I am using ASE to access my Azure Storage Accounts and it works great, but for some reason when I try to access my HDIsight cluster container (the one that has the same name as the HDIsight cluster), I get nothing, it seems to time out without a message. This...

Fetching Windows Azure Storage tables names through python API

python,azure,windows-azure-storage,azure-storage-tables
I'm trying to fetch the names of all the tables of my Windows Azure Storage Account in order to delete them with table_service.delete_table('tasktable'). Unfortunately I didn't find anything in the Windows Azure HOWTO. I only found the official REST API documentation and this blog which explain what I want to...

Errors with Azure Storage

azure,windows-azure-storage
I can logon to the Azure Portal using my MSN account. From the portal, I can see the several storage accounts I have created. But I want to do this from PowerShell. So I use the Azure module and issue this command: Get-AzureStorageAccount I get the error: Psh[Cookham8:Cert:\CurrentUser\my]> get-azurestorageaccount get-azurestorageaccount...

azure is it possible to create blob snapshot from user console

azure,windows-azure-storage,azure-storage-blobs
my question is about Microsoft Azure blob storage. Can I manage blob snapshots from user console (azure portal)? Take snapshot,delete,recover etc. Thanks...

Stop Multiple WebAPI requests from Azure Scheduler

azure,web-api,windows-azure-storage
I have a web api which does a task and it currently takes couple of minutes based on the data. This can increases over time. I have Azure scheduler job which calls this web api every 10 minutes. I want to avoid the case where the second call after 10...

Azure Table Storage - TableEntity map column with a different name

azure,mapping,windows-azure-storage,azure-storage-tables
I am using Azure Table Storage as my data sink for my Semantic Logging Application Block. When I call a log to be written by my custom EventSource, I get columns similar to the ff.: EventId Payload_username Opcode I can obtain these columns by creating a TableEntity class that matches...

Generating SAS for Blob Storage using 'azure-storage' npm not working

node.js,windows-azure-storage,azure-mobile-services,azure-storage-blobs
I am trying to get SAS access URL for a blob in azure blob-storage from a custom api in my azure-mobile-services. For this I am using the azure-storage node module, using this how-to guide. I have the required AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY env variables set in my mobile-serivces config. Below is...

Can you use Azure CDN without having to upload the files to Azure storage?

azure,windows-azure-storage,cdn
I have a website where I would like to cache the few images/stylesheets/javascript-files I have. Is it possible to have Azure CDN point directly on the files on my server, and then cache them, instead of having to upload them to an Azure storage?

Exclude sig querystring parameter from any auth check in Azure Blob storage

azure,windows-azure-storage,azure-storage-blobs
I am using an Azure Blob to serve static assets such as html, images, css and js for a facebook iframe app. I am working on the integration of that app as an odnoklassniki.ru (ok.ru) iframe app. So in the app config, let's say I setup the app url pointing...

Receiving 404 Response When Attempting to Use the Windows Azure Storage Emulator

windows-azure-storage,azure-storage-emulator
The Problem When I try to work with the storage emulator (v3.4.0.0), I receive the following exception: System.Net.WebException: The remote server returned an error: (404) Not Found. Specifically, this happens when I attempt to interact with my CloudBlobContainer instance, which was created via blobClient.GetContainerReference( myContainerName ). In this case, it's...

How to I pass a stream from Web API to Azure Blob storage without temp files?

c#,asp.net,azure,web-api,windows-azure-storage
I am working on an application where file-uploads happen often, and can be pretty big in size. Those files are being uploaded to Web API, which will then get the stream from the request, and pass it on to my storage service, that then uploads it to Azure Blob Storage....

Adding a storage container to Azure with different account?

azure,hive,windows-azure-storage,azure-storage-blobs,hdinsight
We are trying to use a common data for more than one Outlook accounts. Lets say data is stored in a container which belongs to [email protected] and I want to read it as [email protected], my friend wants to read from [email protected] I have common account's storage account name, container name...

Azure Notification Messages never reach the notification queue using Media Services

windows-azure-storage,azure-media-services,windows-azure-queues
I am currently adding video services to an application using azure media services and azure storage with c# web api. The upload process seems to be working correctly and I can see where the job completes successfully from the admin. console. However, if I run the application under the debugger...

Unable to create container on Azure Storage

c#,azure,windows-azure-storage,azure-storage-blobs
I'm trying to create azure storage using follwing simple code. Tried manually for cross check working fine manually. static void Main(string[] args) { //Parse the connection string and return a reference to the storage account. CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString")); //Create the blob client object. CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); //Get a...