gpt4 book ai didi

powershell - New-AzureWebsite 错误 "Value cannot be null"参数 ServerFarm

转载 作者:行者123 更新时间:2023-12-02 23:28:21 25 4
gpt4 key购买 nike

我正在使用 azure powershell 来自动化部署。但我在创建网站时遇到问题。

运行以下命令

New-AzureWebsite anyRandomName

我得到了异常(exception):

New-AzureWebsite : Value cannot be null.
Parameter name: parameters.ServerFarm
At line:1 char:1
+ New-AzureWebsite anyRandomName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureWebsite], ArgumentNullException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.NewAzureWebsiteCommand

请注意,我已成功创建其他类型的资源(云服务、存储......)。我还使用跨平台命令行界面成功创建了网站。

我的环境:

  • powershell 3.0
  • Azure Power Shell 0.8.10
  • Windows 8

您对这个错误有任何了解吗?

最佳答案

我在使用最新版本的 Windows Azuer Powershell(0.8.10) 的新虚拟机上遇到了同样的问题。但它确实可以在我现有的带有旧版本 Windows Azure Powershell(0.8.9) 的 VM 上运行。在我现有的虚拟机上安装最新版本后,它也给出了相同的异常。所以这是 2014 年 10 月 27 日发布的最新版本的 Windows Azure Powershell 中的一个问题。

更新

我确认这是0.8.10版本中的一个错误。请参阅问题 https://github.com/Azure/azure-sdk-tools/issues/3028和拉取请求https://github.com/Azure/azure-sdk-tools/pull/3036在官方 github 存储库上。现在已在 0.8.10.1 版本中修复。

关于powershell - New-AzureWebsite 错误 "Value cannot be null"参数 ServerFarm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26607168/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com