简体   繁体   English

Azure Powershell cmdlet - New-AzureWebsite:未找到请求的值“Premium”

[英]Azure Powershell cmdlets - New-AzureWebsite : Requested value 'Premium' was not found

It gives me this kind of error, but site was created in Azure.它给了我这种错误,但站点是在 Azure 中创建的。

What I did in powershell:我在powershell中做了什么:

New-AzureWebsite somewebsite

Error message:错误信息:

New-AzureWebsite : Requested value 'Premium' was not found. New-AzureWebsite:未找到请求的值“Premium”。 At line:1 char:1 + New-AzureWebsite testscmpunetsu23 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzureWebsite], ArgumentException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.NewAzureWebsiteCommand在 line:1 char:1 + New-AzureWebsite testscmpunetsu23 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError : (:) [New-AzureWebsite], ArgumentException +fullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.NewAzureWebsiteCommand

似乎命令行和输出不匹配,因为输出说 testscmpunetsu23 .. 我已经在最新的 powershell 版本 9.4 上对此进行了测试,没有发现任何问题,请提供带有 -Debug 选项的命令输出

yes.是的。 I forgot to mask also output :)我忘了屏蔽也输出:)

my solution for this error was switch to Azure Resource Manager mode and after that it went well.我对这个错误的解决方案是切换到 Azure 资源管理器模式,之后一切顺利。

https://msdn.microsoft.com/en-us/library/dn722470.aspx?f=255&MSPPError=-2147217396 https://msdn.microsoft.com/en-us/library/dn722470.aspx?f=255&MSPPError=-2147217396

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM