Windows Azure Powershell命令Get-AzureWebsite导致错误字符串未被识别为有效的布尔值



我正试图通过Powershell管理我的一些Azure服务,使用http://windowsazurewebsitescheatsheet.info/#powershell作为起点。我可以很好地下载和导入我的订阅设置(导入AzurePublishSettingsFile并选择AzureSubscription)

选择订阅后,我正试图运行Get-AzureWebsite命令来查看我的所有网站,然后继续。然而,当我运行该命令时,我会得到以下内容:

Import-AzurePublishSettingsFile "C:AzureCredentials.publishsettings"
Select-AzureSubscription "My Azure Subscription"
Get-AzureWebsite
Get-AzureWebsite : String was not recognized as a valid Boolean.
At line:1 char:1
+ Get-AzureWebsite
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureWebsite], FormatException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.GetAzureWebsiteCommand

有人有类似的问题吗?如果我运行如上所述的命令,或者如果我指定了我的网站名称,我会收到这个错误。TIA寻求任何帮助!

这可能与枚举具有SSL绑定的站点的已知问题有关2012年2月发布了新版本的Windows Azure Powershell。请试用新版本。

请在启用-Debug的情况下再次运行该命令,这将显示请求和响应消息,并使确定问题变得更容易。

最新更新