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"?>
<Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
<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.