Time to connect to your Azure Storage account

March 31, 2011

Sometimes when you try to connect to your Azure storage account you might get the following error message:

“Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.”

Searching the Internet for the cause of the problem will probably lead you to check your Internet connection, the storage name and key, your Azure account ID etc…

But there’s one thing that you should check first – your machine’s date and time !!

Apparently, when you connect to your Azure Storage account, the request is sent with the current time of your machine and that time is used to verify that the request is not a hijacked request sent again by a hacker. This can be seen by using Fiddler and looking at the response sent by the server:

<?xml version="1.0" encoding="utf-8"?>
<Error><Code>AuthenticationFailed</Code>
<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Time:2011-03-31T08:37:31.9577840Z</Message>
<AuthenticationErrorDetail>Request date header too old: ‘Thu, 31 Mar 2011 07:37:26 GMT'</AuthenticationErrorDetail></Error>

Changing the time to the current time will easily fix this problem.

Note: When using Windows HPC Server 2008 R2 SP1 with Azure nodes, you might also get this error when trying to start your Azure nodes – this is because the HPC cluster manager stores the application packages in an Azure Storage blob.

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

one comment

  1. SvenSeptember 22, 2012 ב 5:37 pm

    Thank you very much!!!!!

    Reply