【发布时间】:2016-02-17 10:25:02
【问题描述】:
我的环境中有名为“标准”的应用服务。目前应用服务配置在标准层 small 1 实例中。
我正在尝试使用 powershell 扩展应用程序服务,这将反过来扩展此应用程序服务中的 Web 应用程序。 我想将大小更改为中,实例更改为 2。
这是我的sn-p。
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 等。所以不是环境问题。
任何帮助表示赞赏..
谢谢
【问题讨论】:
标签: powershell azure azure-web-app-service azure-app-service-envrmnt