2

我的环境中有名为 "Standard" 的应用服务。目前,应用服务配置在标准层小 1 实例中。

使用 powershell 我正在尝试扩展应用程序服务,这将反过来扩展此应用程序服务中的 Web 应用程序。我想将大小更改为中,实例更改为 2。

这是我的片段。

Login-AzureRmAccount
Set-AzureRMAppServicePlan -Name Standard -ResourceGroupName
 MyWebAppRG  -    NumberofWorkers 2 -WorkerSize Medium

当我运行此命令时,出现以下错误

Set-AzureRMAppServicePlan : Could not load file or assembly 'Microsoft.Rest.ClientRuntime.Azure.Authentication, Version=0.11.0.0, 
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
At line:11 char:1
+ Set-AzureRMAppServicePlan -Name Standard -ResourceGroupName MyWebAppRG  -Numbero ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-AzureRMAppServicePlan], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Azure.Commands.WebApps.Cmdlets.AppServicePlans.SetAzureAppSe 
   rvicePlanCmdlet

我不确定,这里有什么问题?以及这个错误到底意味着什么。

有关信息,我可以很好地运行其他 powershell 命令,例如 set-AzureRMResource 等。所以不是环境问题。

任何帮助表示赞赏..

谢谢

4

1 回答 1

0

您使用的是哪个版本的 Azure Powershell?这是 Azure Powershell 1.0.0 中的一个已知问题。如果您使用的是该版本,请改用以下版本。如果您仍然看到问题,请回帖。

https://github.com/Azure/azure-powershell/releases/tag/v1.0.1-November2015

于 2015-11-16T19:14:35.323 回答