你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Set-AzApplicationGatewaySku
修改应用程序网关的 SKU。
语法
Set-AzApplicationGatewaySku
-ApplicationGateway <PSApplicationGateway>
-Name <String>
-Tier <String>
[-Capacity <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Set-AzApplicationGatewaySku cmdlet 修改应用程序网关的保留单位(SKU)。
示例
示例 1:更新应用程序网关 SKU
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$AppGw = Set-AzApplicationGatewaySku -ApplicationGateway $AppGw -Name "Standard_Small" -Tier "Standard" -Capacity 2
第一个命令获取名为 ApplicationGateway01 的应用程序网关,该网关属于名为 ResourceGroup01 的资源组,并将其存储在$AppGw变量中。 第二个命令更新应用程序网关的 SKU。
参数
-ApplicationGateway
指定此 cmdlet 与此 cmdlet 关联的应用程序网关对象。
类型: | PSApplicationGateway |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Capacity
指定应用程序网关的实例计数。
类型: | Nullable<T>[Int32] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
指定应用程序网关的名称。 此参数的可接受值为:
- Standard_Small
- Standard_Medium
- Standard_Large
- WAF_Medium
- WAF_Large
类型: | String |
接受的值: | Standard_Small, Standard_Medium, Standard_Large, WAF_Medium, WAF_Large, Standard_v2, WAF_v2, Basic |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Tier
指定应用程序网关的层。 此参数的可接受值为:
- 标准
- WAF
类型: | String |
接受的值: | Standard, WAF, Standard_v2, WAF_v2, Basic |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |