Get-AzureStorageBlob : ResourceNotFound: The resource service name storageservices is not supported.

Hello,

I've had a script for the last few weeks working on 2 servers, I've been trying to get it working on another server and as soon as it hits the below code which trys to execute 'Get-AzureStorageBlob' I get the below error message. 

Set-AzureSubscription -SubscriptionName $Subscription -CurrentStorageAccountName $StorageAccountName

$StorageContainers = @("full","diff","log") foreach($Container in $StorageContainers) { $Files = Get-AzureStorageBlob -Container $Container foreach ($file in $Files) { Remove-AzureStorageBlob -Container $Container -Blob $file.Name } }


Get-AzureStorageBlob : ResourceNotFound: The resource service name storageservices is not supported.
At C:\Scripts\ClusterToAzureMaintenance.ps1:33 char:24
+         $BackupFiles = Get-AzureStorageBlob -Container $Container
+                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureStorageBlob], CloudException
    + FullyQualifiedErrorId : CloudException,Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.GetAzureStorageBlobCommand

The Azure functions are working within powershell and list all functions available.

The code is an exact copy/paste, all servers are running as an azure VM.  The only thing I can find is that the new server has a later version of Azure PowerShell installed - 0.8.4 whereas the other servers are running version: 0.7.1

Anyone seen this before?

Marcus

July 1st, 2014 6:40am

Hi Marcus ,

I'm afraid this is beyond what I can support .

Maybe you can get accurate assistance from following azure forum:

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/home?category=windowsazureplatform%2Cazuremarketplace%2Cwindowsazureplatformctp

Best Regards

Elton Ji

Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2014 4:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics