I get 500 internal server error in Windows Azure (on localhost too) if I deploy a simple program which connects to Blob storage:
<?php
$blob = new Microsoft_WindowsAzure_Storage_Blob(
'blob.core.windows.net',
'##storage_account##',
'##storage_key##'
);
$blob->createContainerIfNotExists('img');
$blob->listBlobs('img');
?>
If I don’t use blob but only SQL access or a simple phpinfo() than everything is OK.
Make sure you have included the phpAzure SDK files.
This would be something like the following at the top of your file:
For this you should have the phpAzure SDK ( http://phpazure.codeplex.com/ ) somewhere in your include path or in the current directory.
Hope that helps!