What ever command I run from the Windows Azure PowerShell module, I get the same error. Example:
Get-AzureStorageAccount : 'Content-Type' is an unexpected token. The expected token is '"' or '''. Line 2, position 18.
At line:1 char:24
+ Get-AzureStorageAccount <<<< -StorageAccountName "bzyeastussys"
+ CategoryInfo : CloseError: (:) [Get-AzureStorageAccount], XmlException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Management.ServiceManagement.StorageServices.GetAzureStorageAccountCommand
I am completely stumped on what the problem is.
I have successfully set my subscription details (I can do a “Get-AzureSubscription”) but any command I use that is calling out to the Azure services gives me this error about “Content-Type” being an unexpected token. I am able to use the old “Windows Azure PowerShell Cmdlets” without issue.
Any ideas on what the issue with “Windows Azure PowerShell” might be?
Thanks.
The issue is down to there being an internet proxy being used. The request is being challenged for authentication, hence the error.