共用方式為


New-AzApplicationGateway

建立應用程式閘道。

語法

IdentityByUserAssignedIdentityId (預設值)

New-AzApplicationGateway
    -Name <String>
    -ResourceGroupName <String>
    -Location <String>
    -Sku <PSApplicationGatewaySku>
    -GatewayIPConfigurations <PSApplicationGatewayIPConfiguration[]>
    -FrontendPorts <PSApplicationGatewayFrontendPort[]>
    -BackendAddressPools <PSApplicationGatewayBackendAddressPool[]>
    [-SslPolicy <PSApplicationGatewaySslPolicy>]
    [-SslCertificates <PSApplicationGatewaySslCertificate[]>]
    [-AuthenticationCertificates <PSApplicationGatewayAuthenticationCertificate[]>]
    [-TrustedRootCertificate <PSApplicationGatewayTrustedRootCertificate[]>]
    [-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
    [-FrontendIPConfigurations <PSApplicationGatewayFrontendIPConfiguration[]>]
    [-Probes <PSApplicationGatewayProbe[]>]
    [-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 <Boolean>]
    [-EnableResponseBuffering <Boolean>]
    [-ForceFirewallPolicyAssociation]
    [-Zone <String[]>]
    [-Tag <Hashtable>]
    [-UserAssignedIdentityId <String>]
    [-Force]
    [-AsJob]
    [-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
    [-PrivateLinkConfiguration <PSApplicationGatewayPrivateLinkConfiguration[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SetByResourceId

New-AzApplicationGateway
    -Name <String>
    -ResourceGroupName <String>
    -Location <String>
    -Sku <PSApplicationGatewaySku>
    -GatewayIPConfigurations <PSApplicationGatewayIPConfiguration[]>
    -FrontendPorts <PSApplicationGatewayFrontendPort[]>
    -BackendAddressPools <PSApplicationGatewayBackendAddressPool[]>
    [-SslPolicy <PSApplicationGatewaySslPolicy>]
    [-SslCertificates <PSApplicationGatewaySslCertificate[]>]
    [-AuthenticationCertificates <PSApplicationGatewayAuthenticationCertificate[]>]
    [-TrustedRootCertificate <PSApplicationGatewayTrustedRootCertificate[]>]
    [-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
    [-FrontendIPConfigurations <PSApplicationGatewayFrontendIPConfiguration[]>]
    [-Probes <PSApplicationGatewayProbe[]>]
    [-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]
    [-EnableRequestBuffering <Boolean>]
    [-EnableResponseBuffering <Boolean>]
    [-ForceFirewallPolicyAssociation]
    [-Zone <String[]>]
    [-Tag <Hashtable>]
    [-Force]
    [-AsJob]
    [-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
    [-PrivateLinkConfiguration <PSApplicationGatewayPrivateLinkConfiguration[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SetByResource

New-AzApplicationGateway
    -Name <String>
    -ResourceGroupName <String>
    -Location <String>
    -Sku <PSApplicationGatewaySku>
    -GatewayIPConfigurations <PSApplicationGatewayIPConfiguration[]>
    -FrontendPorts <PSApplicationGatewayFrontendPort[]>
    -BackendAddressPools <PSApplicationGatewayBackendAddressPool[]>
    [-SslPolicy <PSApplicationGatewaySslPolicy>]
    [-SslCertificates <PSApplicationGatewaySslCertificate[]>]
    [-AuthenticationCertificates <PSApplicationGatewayAuthenticationCertificate[]>]
    [-TrustedRootCertificate <PSApplicationGatewayTrustedRootCertificate[]>]
    [-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
    [-FrontendIPConfigurations <PSApplicationGatewayFrontendIPConfiguration[]>]
    [-Probes <PSApplicationGatewayProbe[]>]
    [-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 <Boolean>]
    [-EnableResponseBuffering <Boolean>]
    [-ForceFirewallPolicyAssociation]
    [-Zone <String[]>]
    [-Tag <Hashtable>]
    [-Force]
    [-AsJob]
    [-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
    [-PrivateLinkConfiguration <PSApplicationGatewayPrivateLinkConfiguration[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

IdentityByIdentityObject

New-AzApplicationGateway
    -Name <String>
    -ResourceGroupName <String>
    -Location <String>
    -Sku <PSApplicationGatewaySku>
    -GatewayIPConfigurations <PSApplicationGatewayIPConfiguration[]>
    -FrontendPorts <PSApplicationGatewayFrontendPort[]>
    -BackendAddressPools <PSApplicationGatewayBackendAddressPool[]>
    -Identity <PSManagedServiceIdentity>
    [-SslPolicy <PSApplicationGatewaySslPolicy>]
    [-SslCertificates <PSApplicationGatewaySslCertificate[]>]
    [-AuthenticationCertificates <PSApplicationGatewayAuthenticationCertificate[]>]
    [-TrustedRootCertificate <PSApplicationGatewayTrustedRootCertificate[]>]
    [-TrustedClientCertificates <PSApplicationGatewayTrustedClientCertificate[]>]
    [-FrontendIPConfigurations <PSApplicationGatewayFrontendIPConfiguration[]>]
    [-Probes <PSApplicationGatewayProbe[]>]
    [-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 <Boolean>]
    [-EnableResponseBuffering <Boolean>]
    [-ForceFirewallPolicyAssociation]
    [-Zone <String[]>]
    [-Tag <Hashtable>]
    [-Force]
    [-AsJob]
    [-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
    [-PrivateLinkConfiguration <PSApplicationGatewayPrivateLinkConfiguration[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

New-AzApplicationGateway Cmdlet 會建立 Azure 應用程式閘道。 應用程式閘道需要下列項目:

  • 資源群組。
  • 虛擬網路。
  • 後端伺服器儲存區,包含後端伺服器的 IP 位址。
  • 後端伺服器集區設定。 每個集區都有埠、通訊協定和 Cookie 型親和性等設定,這些設定會套用至集區內的所有伺服器。
  • 前端 IP 位址,這是在應用程式閘道上開啟的 IP 位址。 前端 IP 位址可以是公用 IP 位址或內部 IP 位址。
  • 前端埠,這是在應用程式閘道上開啟的公用埠。 到達這些埠的流量會重新導向至後端伺服器。
  • 繫結接聽程式和後端伺服器集區的要求路由規則。 此規則會定義流量到達特定接聽程式時應導向至哪個後端伺服器集區。 接聽程式具有前端連接埠、前端 IP 位址、通訊協定 (HTTP 或 HTTPS) 和安全通訊端層 (SSL) 憑證名稱 (如果設定 SSL 卸載)。

備註

有一個限制,不允許使用者部署 V2 應用程式閘道,以利用客戶金鑰保存庫進行憑證儲存,並具有相關聯的 WAF 原則。 在 New-AzApplicationGateway Cmdlet 所提供的四個參數集中, -Identity 參數永遠不會與 -FirewallPolicy or -FirewallPolicyID 參數重合。 因此,這不能在一次操作中完成。 因應措施是在多個作業中完成此操作。 使用者必須使用受控識別部署標準 V2 應用程式閘道,然後將 SKU 變更為 WAF_v2 並新增 WAF 原則。

範例

範例 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 變數中。 第四個命令會在埠 80 上建立前端埠,將其命名為 FrontEndPort01,並將埠儲存在 $FrontEndPort 變數中。 第五個命令會使用 New-AzPublicIpAddress 建立公用 IP 位址。 第六個命令使用 $PublicIp 建立前端 IP 設定,將其命名為 FrontEndPortConfig01,並將它儲存在 $FrontEndIpConfig 變數中。 第七個命令會使用先前建立的$FrontEndIpConfig $FrontEndPort建立接聽程式。 第八個命令會為接聽程式建立規則。 第九個命令會設定 SKU。 第十個命令使用先前命令設定的物件建立閘道。

範例 2:使用 UserAssigned 身分識別建立應用程式閘道

$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
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-AuthenticationCertificates

指定應用程式閘道的驗證憑證。

參數屬性

類型:

PSApplicationGatewayAuthenticationCertificate[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-AutoscaleConfiguration

自動調整設定

參數屬性

類型:PSApplicationGatewayAutoscaleConfiguration
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-BackendAddressPools

指定應用程式閘道的後端位址集區清單。

參數屬性

類型:

PSApplicationGatewayBackendAddressPool[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-BackendHttpSettingsCollection

指定應用程式閘道的後端 HTTP 設定清單。

參數屬性

類型:

PSApplicationGatewayBackendHttpSettings[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-BackendSettingsCollection

後端設定清單

參數屬性

類型:

PSApplicationGatewayBackendSettings[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

參數屬性

類型:SwitchParameter
預設值:False
支援萬用字元:False
不要顯示:False
別名:參見

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-CustomErrorConfiguration

應用程式閘道的客戶錯誤

參數屬性

類型:

PSApplicationGatewayCustomError[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-EnableFIPS

是否已啟用 FIPS。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-EnableHttp2

是否啟用 HTTP2。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-EnableRequestBuffering

是否啟用請求緩衝。

參數屬性

類型:

Nullable<T>[Boolean]

預設值:True
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-EnableResponseBuffering

是否啟用回應緩衝。

參數屬性

類型:

Nullable<T>[Boolean]

預設值:True
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-FirewallPolicy

防火牆設定

參數屬性

類型:PSApplicationGatewayWebApplicationFirewallPolicy
預設值:None
支援萬用字元:False
不要顯示:False

參數集

SetByResource
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-FirewallPolicyId

防火牆原則標識符

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

SetByResourceId
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Force

強制命令執行,而不要求使用者確認。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ForceFirewallPolicyAssociation

是否已啟用強制防火牆原則關聯。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-FrontendIPConfigurations

指定應用程式閘道的前端 IP 設定清單。

參數屬性

類型:

PSApplicationGatewayFrontendIPConfiguration[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-FrontendPorts

指定應用程式閘道的前端埠清單。

參數屬性

類型:

PSApplicationGatewayFrontendPort[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-GatewayIPConfigurations

指定應用程式閘道的 IP 設定清單。

參數屬性

類型:

PSApplicationGatewayIPConfiguration[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-HttpListeners

指定應用程式閘道的 HTTP 接聽程式清單。

參數屬性

類型:

PSApplicationGatewayHttpListener[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Identity

要指派給應用程式閘道的應用程式閘道身分識別。

參數屬性

類型:PSManagedServiceIdentity
預設值:None
支援萬用字元:False
不要顯示:False

參數集

IdentityByIdentityObject
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Listeners

接聽程式清單

參數屬性

類型:

PSApplicationGatewayListener[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Location

指定要在其中建立應用程式閘道的區域。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Name

指定應用程式閘道的名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:資源名稱

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-PrivateLinkConfiguration

privateLink 組態清單

參數屬性

類型:

PSApplicationGatewayPrivateLinkConfiguration[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Probes

指定應用程式閘道的探查。

參數屬性

類型:

PSApplicationGatewayProbe[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-RedirectConfigurations

重新導向設定清單

參數屬性

類型:

PSApplicationGatewayRedirectConfiguration[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-RequestRoutingRules

指定應用程式閘道的要求路由規則清單。

參數屬性

類型:

PSApplicationGatewayRequestRoutingRule[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ResourceGroupName

指定要在其中建立應用程式閘道的資源群組名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-RewriteRuleSet

RewriteRuleSet 的清單

參數屬性

類型:

PSApplicationGatewayRewriteRuleSet[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-RoutingRules

路由規則清單

參數屬性

類型:

PSApplicationGatewayRoutingRule[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Sku

指定應用程式閘道的庫存單位 (SKU)。

參數屬性

類型:PSApplicationGatewaySku
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-SslCertificates

指定應用程式閘道的安全通訊端層 (SSL) 憑證清單。

參數屬性

類型:

PSApplicationGatewaySslCertificate[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-SslPolicy

指定應用程式閘道的 SSL 原則。

參數屬性

類型:PSApplicationGatewaySslPolicy
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-SslProfiles

ssl 設定檔清單

參數屬性

類型:

PSApplicationGatewaySslProfile[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Tag

雜湊表形式的鍵值對。 例如:@{key0=“value0”;key1=$null;key2=“值2”}

參數屬性

類型:Hashtable
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-TrustedClientCertificates

授信用戶端 CA 憑證鏈結清單

參數屬性

類型:

PSApplicationGatewayTrustedClientCertificate[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-TrustedRootCertificate

受信任的根憑證清單

參數屬性

類型:

PSApplicationGatewayTrustedRootCertificate[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-UrlPathMaps

指定應用程式閘道的 URL 路徑對應。

參數屬性

類型:

PSApplicationGatewayUrlPathMap[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-UserAssignedIdentityId

要指派給應用程式閘道之使用者指派身分識別的 ResourceId。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:UserAssignedIdentity

參數集

IdentityByUserAssignedIdentityId
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-WebApplicationFirewallConfiguration

指定 Web 應用程式防火牆 (WAF) 組態。 您可以使用 Get-AzApplicationGatewayWebApplicationFirewallConfiguration Cmdlet 來取得 WAF。

參數屬性

類型:PSApplicationGatewayWebApplicationFirewallConfiguration
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 指令未執行。

參數屬性

類型:SwitchParameter
預設值:False
支援萬用字元:False
不要顯示:False
別名:威斯康辛

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Zone

可用性區域清單,指出應用程式閘道需要來自的位置。

參數屬性

類型:

String[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

String

PSApplicationGatewaySku

PSApplicationGatewaySslPolicy

PSApplicationGatewayIPConfiguration

PSApplicationGatewaySslCertificate

PSApplicationGatewayAuthenticationCertificate

PSApplicationGatewayTrustedRootCertificate

PSApplicationGatewayFrontendIPConfiguration

PSApplicationGatewayFrontendPort

PSApplicationGatewayProbe

PSApplicationGatewayBackendAddressPool

PSApplicationGatewayBackendHttpSettings

PSApplicationGatewayHttpListener

PSApplicationGatewayUrlPathMap

PSApplicationGatewayRequestRoutingRule

PSApplicationGatewayRewriteRuleSet

PSApplicationGatewayRedirectConfiguration

PSApplicationGatewayWebApplicationFirewallConfiguration

PSApplicationGatewayAutoscaleConfiguration

Hashtable

PSManagedServiceIdentity

輸出

PSApplicationGateway