New-AzureStorageShare : The given share name/prefix 'Sampleshare' is not a valid name for a file share of Microsoft Azure File Service.
After struggling with this unhelpful error for a few minutes I finally figured out what it was meat to say…
When you create a Microsoft Azure File storage you may encounter the above error while following the tutorial here. Setting the context once you get the name of the storage account and the private key is easy, but it’s the next line to create the share that can be tricky. The example uses camel case notation, and there in lies the problem. The share must be named in lower case!!
$s = New-AzureStorageShare Sampleshare -Context $ctx –> $s = New-AzureStorageShare sampleshare -Context $ctx