![](/img/trans.png)
[英]Azure Powershell cmdlets - New-AzureWebsite : Requested value 'Premium' was not found
[英]New-AzureWebsite error “Value cannot be null” parameter ServerFarm
我正在使用Azure Powershell自動執行部署。 但是我在創建網站時遇到問題。
運行以下命令
New-AzureWebsite anyRandomName
我得到例外:
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
請注意,我已經成功創建了其他類型的資源(雲服務,存儲等)。 而且我還使用跨平台命令行界面成功創建了該網站。
我的環境:
您對錯誤有任何想法嗎?
我在使用最新版本的Windows Azuer Powershell(0.8.10)的新虛擬機上遇到相同的問題。 但是,它確實可以在具有舊版本Windows Azure Powershell(0.8.9)的現有VM上運行。 在我現有的VM上也安裝了最新版本后,它也出現了samen異常。 因此,這是2014年10月27日發布的最新版Windows Azure Powershell中的一個問題。
更新
我確認這是版本0.8.10中的錯誤。 參見問題https://github.com/Azure/azure-sdk-tools/issues/3028並在官方github存儲庫上拉取請求https://github.com/Azure/azure-sdk-tools/pull/3036 。 現在已在版本0.8.10.1中修復。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.