你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzApplicationGateway
创建应用程序网关。
语法
New-AzApplicationGateway
-Name <String>
-ResourceGroupName <String>
-Location <String>
-Sku <PSApplicationGatewaySku>
[-SslPolicy <PSApplicationGatewaySslPolicy>]
-GatewayIPConfigurations <PSApplicationGatewayIPConfiguration[]>
[-SslCertificates <PSApplicationGatewaySslCertificate[]>]
[-AuthenticationCertificates <PSApplicationGatewayAuthenticationCertificate[]>]
[-TrustedRootCertificate <PSApplicationGatewayTrustedRootCertificate[]>]
[-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
[-FrontendIPConfigurations <PSApplicationGatewayFrontendIPConfiguration[]>]
-FrontendPorts <PSApplicationGatewayFrontendPort[]>
[-Probes <PSApplicationGatewayProbe[]>]
-BackendAddressPools <PSApplicationGatewayBackendAddressPool[]>
[-BackendHttpSettingsCollection <PSApplicationGatewayBackendHttpSettings[]>]
[-BackendSettingsCollection <PSApplicationGatewayBackendSettings[]>]
[-SslProfiles <PSApplicationGatewaySslProfile[]>]
[-HttpListeners <PSApplicationGatewayHttpListener[]>]
[-Listeners <PSApplicationGatewayListener[]>]
[-UrlPathMaps <PSApplicationGatewayUrlPathMap[]>]
[-RequestRoutingRules <PSApplicationGatewayRequestRoutingRule[]>]
[-RoutingRules <PSApplicationGatewayRoutingRule[]>]
[-RewriteRuleSet <PSApplicationGatewayRewriteRuleSet[]>]
[-RedirectConfigurations <PSApplicationGatewayRedirectConfiguration[]>]
[-WebApplicationFirewallConfiguration <PSApplicationGatewayWebApplicationFirewallConfiguration>]
[-AutoscaleConfiguration <PSApplicationGatewayAutoscaleConfiguration>]
[-EnableHttp2]
[-EnableFIPS]
[-EnableRequestBuffering]
[-EnableResponseBuffering]
[-ForceFirewallPolicyAssociation]
[-Zone <String[]>]
[-Tag <Hashtable>]
[-UserAssignedIdentityId <String>]
[-Force]
[-AsJob]
[-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
[-PrivateLinkConfiguration <PSApplicationGatewayPrivateLinkConfiguration[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzApplicationGateway
-Name <String>
-ResourceGroupName <String>
-Location <String>
-Sku <PSApplicationGatewaySku>
[-SslPolicy <PSApplicationGatewaySslPolicy>]
-GatewayIPConfigurations <PSApplicationGatewayIPConfiguration[]>
[-SslCertificates <PSApplicationGatewaySslCertificate[]>]
[-AuthenticationCertificates <PSApplicationGatewayAuthenticationCertificate[]>]
[-TrustedRootCertificate <PSApplicationGatewayTrustedRootCertificate[]>]
[-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
[-FrontendIPConfigurations <PSApplicationGatewayFrontendIPConfiguration[]>]
-FrontendPorts <PSApplicationGatewayFrontendPort[]>
[-Probes <PSApplicationGatewayProbe[]>]
-BackendAddressPools <PSApplicationGatewayBackendAddressPool[]>
[-BackendHttpSettingsCollection <PSApplicationGatewayBackendHttpSettings[]>]
[-BackendSettingsCollection <PSApplicationGatewayBackendSettings[]>]
[-SslProfiles <PSApplicationGatewaySslProfile[]>]
[-HttpListeners <PSApplicationGatewayHttpListener[]>]
[-Listeners <PSApplicationGatewayListener[]>]
[-UrlPathMaps <PSApplicationGatewayUrlPathMap[]>]
[-RequestRoutingRules <PSApplicationGatewayRequestRoutingRule[]>]
[-RoutingRules <PSApplicationGatewayRoutingRule[]>]
[-RewriteRuleSet <PSApplicationGatewayRewriteRuleSet[]>]
[-RedirectConfigurations <PSApplicationGatewayRedirectConfiguration[]>]
[-WebApplicationFirewallConfiguration <PSApplicationGatewayWebApplicationFirewallConfiguration>]
[-FirewallPolicyId <String>]
[-AutoscaleConfiguration <PSApplicationGatewayAutoscaleConfiguration>]
[-EnableHttp2]
[-EnableFIPS]
[-ForceFirewallPolicyAssociation]
[-Zone <String[]>]
[-Tag <Hashtable>]
[-Force]
[-EnableRequestBuffering]
[-EnableResponseBuffering]
[-AsJob]
[-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
[-PrivateLinkConfiguration <PSApplicationGatewayPrivateLinkConfiguration[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzApplicationGateway
-Name <String>
-ResourceGroupName <String>
-Location <String>
-Sku <PSApplicationGatewaySku>
[-SslPolicy <PSApplicationGatewaySslPolicy>]
-GatewayIPConfigurations <PSApplicationGatewayIPConfiguration[]>
[-SslCertificates <PSApplicationGatewaySslCertificate[]>]
[-AuthenticationCertificates <PSApplicationGatewayAuthenticationCertificate[]>]
[-TrustedRootCertificate <PSApplicationGatewayTrustedRootCertificate[]>]
[-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
[-FrontendIPConfigurations <PSApplicationGatewayFrontendIPConfiguration[]>]
-FrontendPorts <PSApplicationGatewayFrontendPort[]>
[-Probes <PSApplicationGatewayProbe[]>]
-BackendAddressPools <PSApplicationGatewayBackendAddressPool[]>
[-BackendHttpSettingsCollection <PSApplicationGatewayBackendHttpSettings[]>]
[-BackendSettingsCollection <PSApplicationGatewayBackendSettings[]>]
[-SslProfiles <PSApplicationGatewaySslProfile[]>]
[-HttpListeners <PSApplicationGatewayHttpListener[]>]
[-Listeners <PSApplicationGatewayListener[]>]
[-UrlPathMaps <PSApplicationGatewayUrlPathMap[]>]
[-RequestRoutingRules <PSApplicationGatewayRequestRoutingRule[]>]
[-RoutingRules <PSApplicationGatewayRoutingRule[]>]
[-RewriteRuleSet <PSApplicationGatewayRewriteRuleSet[]>]
[-RedirectConfigurations <PSApplicationGatewayRedirectConfiguration[]>]
[-WebApplicationFirewallConfiguration <PSApplicationGatewayWebApplicationFirewallConfiguration>]
[-FirewallPolicy <PSApplicationGatewayWebApplicationFirewallPolicy>]
[-AutoscaleConfiguration <PSApplicationGatewayAutoscaleConfiguration>]
[-EnableHttp2]
[-EnableFIPS]
[-EnableRequestBuffering]
[-EnableResponseBuffering]
[-ForceFirewallPolicyAssociation]
[-Zone <String[]>]
[-Tag <Hashtable>]
[-Force]
[-AsJob]
[-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
[-PrivateLinkConfiguration <PSApplicationGatewayPrivateLinkConfiguration[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzApplicationGateway
-Name <String>
-ResourceGroupName <String>
-Location <String>
-Sku <PSApplicationGatewaySku>
[-SslPolicy <PSApplicationGatewaySslPolicy>]
-GatewayIPConfigurations <PSApplicationGatewayIPConfiguration[]>
[-SslCertificates <PSApplicationGatewaySslCertificate[]>]
[-AuthenticationCertificates <PSApplicationGatewayAuthenticationCertificate[]>]
[-TrustedRootCertificate <PSApplicationGatewayTrustedRootCertificate[]>]
[-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
[-FrontendIPConfigurations <PSApplicationGatewayFrontendIPConfiguration[]>]
-FrontendPorts <PSApplicationGatewayFrontendPort[]>
[-Probes <PSApplicationGatewayProbe[]>]
-BackendAddressPools <PSApplicationGatewayBackendAddressPool[]>
[-BackendHttpSettingsCollection <PSApplicationGatewayBackendHttpSettings[]>]
[-BackendSettingsCollection <PSApplicationGatewayBackendSettings[]>]
[-SslProfiles <PSApplicationGatewaySslProfile[]>]
[-HttpListeners <PSApplicationGatewayHttpListener[]>]
[-Listeners <PSApplicationGatewayListener[]>]
[-UrlPathMaps <PSApplicationGatewayUrlPathMap[]>]
[-RequestRoutingRules <PSApplicationGatewayRequestRoutingRule[]>]
[-RoutingRules <PSApplicationGatewayRoutingRule[]>]
[-RewriteRuleSet <PSApplicationGatewayRewriteRuleSet[]>]
[-RedirectConfigurations <PSApplicationGatewayRedirectConfiguration[]>]
[-WebApplicationFirewallConfiguration <PSApplicationGatewayWebApplicationFirewallConfiguration>]
[-AutoscaleConfiguration <PSApplicationGatewayAutoscaleConfiguration>]
[-EnableHttp2]
[-EnableFIPS]
[-EnableRequestBuffering]
[-EnableResponseBuffering]
[-ForceFirewallPolicyAssociation]
[-Zone <String[]>]
[-Tag <Hashtable>]
-Identity <PSManagedServiceIdentity>
[-Force]
[-AsJob]
[-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
[-PrivateLinkConfiguration <PSApplicationGatewayPrivateLinkConfiguration[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
New-AzApplicationGateway cmdlet 创建 Azure 应用程序网关。 应用程序网关需要以下各项:
- 资源组。
- 虚拟网络。
- 后端服务器池,包含后端服务器的 IP 地址。
- 后端服务器池设置。 每个池都有端口、协议和基于 Cookie 的相关性等设置,这些设置应用于池中的所有服务器。
- 前端 IP 地址,即应用程序网关上打开的 IP 地址。 前端 IP 地址可以是公共 IP 地址或内部 IP 地址。
- 前端端口,即应用程序网关上打开的公共端口。 命中这些端口的流量将重定向到后端服务器。
- 绑定侦听器和后端服务器池的请求路由规则。 该规则定义在流量达到特定侦听器时应定向到的后端服务器池。 侦听器具有前端端口、前端 IP 地址、协议(HTTP 或 HTTPS)和安全套接字层(SSL)证书名称(如果配置 SSL 卸载)。
示例
示例 1:创建应用程序网关
$ResourceGroup = New-AzResourceGroup -Name "ResourceGroup01" -Location "West US" -Tag @{Name = "Department"; Value = "Marketing"}
$Subnet = New-AzVirtualNetworkSubnetConfig -Name "Subnet01" -AddressPrefix 10.0.0.0/24
$VNet = New-AzVirtualNetwork -Name "VNet01" -ResourceGroupName "ResourceGroup01" -Location "West US" -AddressPrefix 10.0.0.0/16 -Subnet $Subnet
$VNet = Get-AzVirtualNetwork -Name "VNet01" -ResourceGroupName "ResourceGroup01"
$Subnet = Get-AzVirtualNetworkSubnetConfig -Name "Subnet01" -VirtualNetwork $VNet
$GatewayIPconfig = New-AzApplicationGatewayIPConfiguration -Name "GatewayIp01" -Subnet $Subnet
$Pool = New-AzApplicationGatewayBackendAddressPool -Name "Pool01" -BackendIPAddresses 10.10.10.1, 10.10.10.2, 10.10.10.3
$PoolSetting = New-AzApplicationGatewayBackendHttpSetting -Name "PoolSetting01" -Port 80 -Protocol "Http" -CookieBasedAffinity "Disabled"
$FrontEndPort = New-AzApplicationGatewayFrontendPort -Name "FrontEndPort01" -Port 80
# Create a public IP address
$PublicIp = New-AzPublicIpAddress -ResourceGroupName "ResourceGroup01" -Name "PublicIpName01" -Location "West US" -AllocationMethod "Dynamic"
$FrontEndIpConfig = New-AzApplicationGatewayFrontendIPConfig -Name "FrontEndConfig01" -PublicIPAddress $PublicIp
$Listener = New-AzApplicationGatewayHttpListener -Name "ListenerName01" -Protocol "Http" -FrontendIpConfiguration $FrontEndIpConfig -FrontendPort $FrontEndPort
$Rule = New-AzApplicationGatewayRequestRoutingRule -Name "Rule01" -RuleType basic -BackendHttpSettings $PoolSetting -HttpListener $Listener -BackendAddressPool $Pool
$Sku = New-AzApplicationGatewaySku -Name "Standard_Small" -Tier Standard -Capacity 2
$Gateway = New-AzApplicationGateway -Name "AppGateway01" -ResourceGroupName "ResourceGroup01" -Location "West US" -BackendAddressPools $Pool -BackendHttpSettingsCollection $PoolSetting -FrontendIpConfigurations $FrontEndIpConfig -GatewayIpConfigurations $GatewayIpConfig -FrontendPorts $FrontEndPort -HttpListeners $Listener -RequestRoutingRules $Rule -Sku $Sku
以下示例首先创建资源组和虚拟网络,并创建应用程序网关,如下所示:
- 后端服务器池
- 后端服务器池设置
- 前端端口
- 前端 IP 地址
- 请求路由规则这四个命令创建虚拟网络。 第一个命令创建子网配置。 第二个命令创建虚拟网络。 第三个命令验证子网配置,第四个命令验证是否已成功创建虚拟网络。 以下命令创建应用程序网关。 第一个命令为之前创建的子网创建名为 GatewayIp01 的 IP 配置。 第二个命令创建名为 Pool01 的后端服务器池,其中包含后端 IP 地址列表,并将池存储在$Pool变量中。 第三个命令为后端服务器池创建设置,并将设置存储在$PoolSetting变量中。 forth 命令在端口 80 上创建前端端口,将其命名为 FrontEndPort01,并将端口存储在$FrontEndPort变量中。 第五个命令使用 New-AzPublicIpAddress 创建公共 IP 地址。 第六个命令使用 $PublicIp 创建前端 IP 配置,将其命名为 FrontEndPortConfig01,并将其存储在$FrontEndIpConfig变量中。 第七个命令使用以前创建的$FrontEndIpConfig $FrontEndPort创建侦听器。 第八个命令为侦听器创建规则。 第九个命令设置 SKU。 第十个命令使用上述命令设置的对象创建网关。
示例 2:使用 UserAssigned Identity 创建应用程序网关
$ResourceGroup = New-AzResourceGroup -Name "ResourceGroup01" -Location "West US" -Tag @{Name = "Department"; Value = "Marketing"}
$Subnet = New-AzVirtualNetworkSubnetConfig -Name "Subnet01" -AddressPrefix 10.0.0.0/24
$VNet = New-AzVirtualNetwork -Name "VNet01" -ResourceGroupName "ResourceGroup01" -Location "West US" -AddressPrefix 10.0.0.0/16 -Subnet $Subnet
$VNet = Get-AzVirtualNetwork -Name "VNet01" -ResourceGroupName "ResourceGroup01"
$Subnet = Get-AzVirtualNetworkSubnetConfig -Name $Subnet01 -VirtualNetwork $VNet
$GatewayIPconfig = New-AzApplicationGatewayIPConfiguration -Name "GatewayIp01" -Subnet $Subnet
$Pool = New-AzApplicationGatewayBackendAddressPool -Name "Pool01" -BackendIPAddresses 10.10.10.1, 10.10.10.2, 10.10.10.3
$PoolSetting = New-AzApplicationGatewayBackendHttpSetting -Name "PoolSetting01" -Port 80 -Protocol "Http" -CookieBasedAffinity "Disabled"
$FrontEndPort = New-AzApplicationGatewayFrontendPort -Name "FrontEndPort01" -Port 80
# Create a public IP address
$PublicIp = New-AzPublicIpAddress -ResourceGroupName "ResourceGroup01" -Name "PublicIpName01" -Location "West US" -AllocationMethod "Dynamic"
$FrontEndIpConfig = New-AzApplicationGatewayFrontendIPConfig -Name "FrontEndConfig01" -PublicIPAddress $PublicIp
$Listener = New-AzApplicationGatewayHttpListener -Name "ListenerName01" -Protocol "Http" -FrontendIpConfiguration $FrontEndIpConfig -FrontendPort $FrontEndPort
$Rule = New-AzApplicationGatewayRequestRoutingRule -Name "Rule01" -RuleType basic -BackendHttpSettings $PoolSetting -HttpListener $Listener -BackendAddressPool $Pool
$Sku = New-AzApplicationGatewaySku -Name "Standard_Small" -Tier Standard -Capacity 2
$Identity = New-AzUserAssignedIdentity -Name "Identity01" -ResourceGroupName "ResourceGroup01" -Location "West US"
$AppgwIdentity = New-AzApplicationGatewayIdentity -UserAssignedIdentity $Identity.Id
$Gateway = New-AzApplicationGateway -Name "AppGateway01" -ResourceGroupName "ResourceGroup01" -Location "West US" -Identity $AppgwIdentity -BackendAddressPools $Pool -BackendHttpSettingsCollection $PoolSetting -FrontendIpConfigurations $FrontEndIpConfig -GatewayIpConfigurations $GatewayIpConfig -FrontendPorts $FrontEndPort -HttpListeners $Listener -RequestRoutingRules $Rule -Sku $Sku
参数
-AsJob
在后台运行 cmdlet
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-AuthenticationCertificates
指定应用程序网关的身份验证证书。
类型: | PSApplicationGatewayAuthenticationCertificate[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-AutoscaleConfiguration
自动缩放配置
类型: | PSApplicationGatewayAutoscaleConfiguration |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-BackendAddressPools
指定应用程序网关的后端地址池列表。
类型: | PSApplicationGatewayBackendAddressPool[] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-BackendHttpSettingsCollection
指定应用程序网关的后端 HTTP 设置列表。
类型: | PSApplicationGatewayBackendHttpSettings[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-BackendSettingsCollection
后端设置列表
类型: | PSApplicationGatewayBackendSettings[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Confirm
提示你在运行 cmdlet 之前进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-CustomErrorConfiguration
应用程序网关的客户错误
类型: | PSApplicationGatewayCustomError[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EnableFIPS
是否启用 FIPS。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EnableHttp2
是否启用 HTTP2。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EnableRequestBuffering
是否启用请求缓冲。
类型: | Boolean |
Position: | Named |
默认值: | True |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EnableResponseBuffering
是否启用响应缓冲。
类型: | Boolean |
Position: | Named |
默认值: | True |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-FirewallPolicy
防火墙配置
类型: | PSApplicationGatewayWebApplicationFirewallPolicy |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-FirewallPolicyId
FirewallPolicyId
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Force
强制运行命令而不要求用户确认。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ForceFirewallPolicyAssociation
是否启用 Force firewallPolicy 关联。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-FrontendIPConfigurations
指定应用程序网关的前端 IP 配置列表。
类型: | PSApplicationGatewayFrontendIPConfiguration[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-FrontendPorts
指定应用程序网关的前端端口列表。
类型: | PSApplicationGatewayFrontendPort[] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-GatewayIPConfigurations
指定应用程序网关的 IP 配置列表。
类型: | PSApplicationGatewayIPConfiguration[] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-HttpListeners
指定应用程序网关的 HTTP 侦听器列表。
类型: | PSApplicationGatewayHttpListener[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Identity
应用程序网关要分配给应用程序网关的标识。
类型: | PSManagedServiceIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Listeners
侦听器列表
类型: | PSApplicationGatewayListener[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Location
指定要在其中创建应用程序网关的区域。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
指定应用程序网关的名称。
类型: | String |
别名: | ResourceName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-PrivateLinkConfiguration
privateLink 配置列表
类型: | PSApplicationGatewayPrivateLinkConfiguration[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Probes
指定应用程序网关的探测。
类型: | PSApplicationGatewayProbe[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-RedirectConfigurations
重定向配置列表
类型: | PSApplicationGatewayRedirectConfiguration[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-RequestRoutingRules
指定应用程序网关的请求路由规则列表。
类型: | PSApplicationGatewayRequestRoutingRule[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
指定要在其中创建应用程序网关的资源组的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-RewriteRuleSet
RewriteRuleSet 列表
类型: | PSApplicationGatewayRewriteRuleSet[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-RoutingRules
路由规则列表
类型: | PSApplicationGatewayRoutingRule[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Sku
指定应用程序网关的库存单位(SKU)。
类型: | PSApplicationGatewaySku |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-SslCertificates
指定应用程序网关的安全套接字层(SSL)证书列表。
类型: | PSApplicationGatewaySslCertificate[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-SslPolicy
指定应用程序网关的 SSL 策略。
类型: | PSApplicationGatewaySslPolicy |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-SslProfiles
ssl 配置文件列表
类型: | PSApplicationGatewaySslProfile[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-Tag
以哈希表的形式进行键值对。 例如:@{key0=“value0”;key1=$null;key2=“value2”}
类型: | Hashtable |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-TrustedClientCertificates
受信任的客户端 CA 证书链列表
类型: | PSApplicationGatewayTrustedClientCertificate[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-TrustedRootCertificate
受信任的根证书列表
类型: | PSApplicationGatewayTrustedRootCertificate[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-UrlPathMaps
指定应用程序网关的 URL 路径映射。
类型: | PSApplicationGatewayUrlPathMap[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-UserAssignedIdentityId
要分配给应用程序网关的用户分配标识的 ResourceId。
类型: | String |
别名: | UserAssignedIdentity |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-WebApplicationFirewallConfiguration
指定 Web 应用程序防火墙(WAF)配置。 可以使用 Get-AzApplicationGatewayWebApplicationFirewallConfiguration cmdlet 获取 WAF。
类型: | PSApplicationGatewayWebApplicationFirewallConfiguration |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |
-WhatIf
显示运行该 cmdlet 时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Zone
表示应用程序网关需要来自的可用性区域列表。
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
PSApplicationGatewayIPConfiguration[]
PSApplicationGatewaySslCertificate[]
PSApplicationGatewayAuthenticationCertificate[]
PSApplicationGatewayTrustedRootCertificate[]
PSApplicationGatewayFrontendIPConfiguration[]
PSApplicationGatewayFrontendPort[]
PSApplicationGatewayBackendAddressPool[]
PSApplicationGatewayBackendHttpSettings[]
PSApplicationGatewayHttpListener[]
PSApplicationGatewayUrlPathMap[]
PSApplicationGatewayRequestRoutingRule[]
PSApplicationGatewayRewriteRuleSet[]
PSApplicationGatewayRedirectConfiguration[]
PSApplicationGatewayWebApplicationFirewallConfiguration
PSApplicationGatewayAutoscaleConfiguration
输出
相关链接
- New-AzApplicationGatewayBackendAddressPool
- New-AzApplicationGatewayBackendHttpSetting
- New-AzApplicationGatewayFrontendIPConfig
- New-AzApplicationGatewayFrontendPort
- New-AzApplicationGatewayHttpListener
- New-AzApplicationGatewayIPConfiguration
- New-AzApplicationGatewayRequestRoutingRule
- New-AzApplicationGatewaySku
- New-AzVirtualNetwork
- New-AzVirtualNetworkSubnetConfig