找不到Azure服务器场

时间:2015-08-27 14:09:00

标签: powershell azure

我正在尝试通过powershell脚本创建一个azure网站。托管计划已经创建,我只想添加一个新的网站。

我使用的脚本是:

New-AzureResource : {"Code":"NotFound","Message":"Server farm with name my-serviceplan not found.","Target":null,"Details":[{"Message":"Server farm with name
my-serviceplan not found."},{"Code":"NotFound"},{"ErrorEntity":{"Code":"NotFound","Message":"Server farm with name my-serviceplan not
found.","ExtendedCode":"11001","MessageTemplate":"Server farm with name {0} not found.","Parameters":["my-serviceplan"],"InnerErrors":null}}],"Innererror":null}
At line:1 char:1
+ New-AzureResource -Name MyTestSite -Location "West Europe" -ResourceGrou ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureResource], ErrorResponseMessageException
+ FullyQualifiedErrorId : NotFound,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceCmdlet

服务器场($ targetServicePlan)有一个资源ID,所以我假设它存在(在这个名称的azure门户中也有一个托管计划)。然而,当我尝试创建网站时,我收到错误:"找不到名称为my-serviceplan的服务器场。"

完整错误是:

T/C

我错过了什么?

0 个答案:

没有答案