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 } }
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
- Changed type Elton_JiMicrosoft contingent staff, Moderator 1 hour 47 minutes ago