Unable to create a new storage account from PowerShell

Posted by on Jan 21, 2014 in Azure

I recently ran into a problem creating a storage account using PowerShell. The rather obscure error I was getting was:

After lots of digging about coming up blank at the likes of Bing, Google and Stack Overflow I worked out the root cause – the name I was using for the storage account exceeded the 24 character length imposed by Azure! Simple error that I should have spotted, and attempting to create that environment in the portal surfaced the underlying cause immediately, but error messages like this really do not help.


Nothing like a helpful error message is there!