Azure-应用程序服务计划-向外扩展 [英] Azure - App Service Plan - Scale Out
问题描述
从一家新公司开始,然后与开发人员和API一起工作.
Starting at a new company and working with Developers and API's.
发现几乎所有的缩放配置均未正确设置.有很多应用服务计划.
Found out that almost all of their scaling configurations are not setup correctly. There are alot of App Service Plans.
尝试通过PowerShell找到一种方法来获取App Service Plans的Scale Out配置,但没有任何运气.我找到了一些示例,其中的人们创建了Scale Out配置,但没有任何东西可以提取现有的横向扩展配置.
Trying to find a way via PowerShell to get the Scale Out configuration of App Service Plans without any luck. I have found examples where people have created the Scale Out configs, but nothing that pulls the existing scale out configurations.
还是有一种更好的非PowerShell方法?
Or is there a better, non PowerShell way?
提前感谢您的帮助.
推荐答案
嗨克里斯,
您可以使用以下命令更改横向扩展配置
You can use the below command to change the scale out config
Set-AzureRMAppServicePlan -NumberofWorkers 3 -Name <AppServicePlanName> -ResourceGroupName <ResourceGroupName> -Tier Premium
为了获得App Service Plan的横向扩展配置,请使用以下powershell命令:
In order to get the scale out configuration of an App Service Plan please use the below powershell commands:
Get-AzureRmAppServicePlan -ResourceGroupName <ResourceGroupName> -Name <AppServicePlanName>
Get-AzureRmResource -ResourceType "microsoft.web/serverfarms" -ResourceGroupName <ResourceGroupName> -ExpandProperties -Verbose
https://docs.microsoft .com/en-us/powershell/module/azurerm.resources/get-azurermresource?view = azurermps-6.13.0 您还可以转到Azure门户中的应用服务计划"并签出配置.
You can also go to the App Service Plan in the Azure Portal and check out the configurations.
如果您想使用PowerShell为Azure App Service配置自动缩放,请参见以下博客:
Here is a blog if you want to configure auto scaling for an Azure App Service with PowerShell:
要获取Azure应用服务的自动缩放的配置,可以使用以下命令:
To get the configurations of auto scaling for an Azure App Service you can use the below command:
Get-AzureRmAutoscaleSetting -ResourceGroup <ResourceGroupName> -DetailedOutput
希望这会有所帮助!
这篇关于Azure-应用程序服务计划-向外扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!