Add-AzApplicationGatewayHttpListener
Hiermee voegt u een HTTP-listener toe aan een toepassingsgateway.
Syntaxis
Add-AzApplicationGatewayHttpListener
-ApplicationGateway <PSApplicationGateway>
-Name <String>
[-FrontendIPConfigurationId <String>]
[-FrontendPortId <String>]
[-SslCertificateId <String>]
[-FirewallPolicyId <String>]
[-SslProfileId <String>]
[-HostName <String>]
[-HostNames <String[]>]
[-RequireServerNameIndication <String>]
-Protocol <String>
[-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Add-AzApplicationGatewayHttpListener
-ApplicationGateway <PSApplicationGateway>
-Name <String>
[-FrontendIPConfiguration <PSApplicationGatewayFrontendIPConfiguration>]
[-FrontendPort <PSApplicationGatewayFrontendPort>]
[-FirewallPolicy <PSApplicationGatewayWebApplicationFirewallPolicy>]
[-SslCertificate <PSApplicationGatewaySslCertificate>]
[-SslProfile <PSApplicationGatewaySslProfile>]
[-HostName <String>]
[-HostNames <String[]>]
[-RequireServerNameIndication <String>]
-Protocol <String>
[-CustomErrorConfiguration <PSApplicationGatewayCustomError[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
De cmdlet Add-AzApplicationGatewayHttpListener voegt een HTTP-listener toe aan een toepassingsgateway.
Voorbeelden
Voorbeeld 1: Een HTTP-listener toevoegen
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$Appgw = Add-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "listener01" -Protocol "Http" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01
Met de eerste opdracht wordt de toepassingsgateway opgeslagen in de $AppGw variabele. Met de tweede opdracht wordt de HTTP-listener toegevoegd aan de toepassingsgateway.
Voorbeeld 2: Een HTTPS-listener toevoegen met SSL
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$AppGw = Add-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol "Https" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01 -SslCertificate $SSLCert01
Met de eerste opdracht wordt de toepassingsgateway opgeslagen in de $AppGw variabele. Met de tweede opdracht wordt de listener, die gebruikmaakt van het HTTPS-protocol, toegevoegd aan de toepassingsgateway.
Voorbeeld 3: Een HTTPS-listener toevoegen met SSL en HostNames
$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$AppGw = Add-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol "Https" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01 -SslCertificate $SSLCert01 -HostNames "*.contoso.com","www.microsoft.com"
Met de eerste opdracht wordt de toepassingsgateway opgeslagen in de $AppGw variabele. Met de tweede opdracht wordt de listener, die gebruikmaakt van het HTTPS-protocol, met SSL-certificaten en hostnamen, toegevoegd aan de toepassingsgateway.
Parameters
-ApplicationGateway
Hiermee geeft u de toepassingsgateway waaraan deze cmdlet een HTTP-listener toevoegt.
Type: | PSApplicationGateway |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-CustomErrorConfiguration
Fout van de klant van een toepassingsgateway
Type: | PSApplicationGatewayCustomError[] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, het account, de tenant en het abonnement die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-FirewallPolicy
FirewallPolicy
Type: | PSApplicationGatewayWebApplicationFirewallPolicy |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-FirewallPolicyId
FirewallPolicyId
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-FrontendIPConfiguration
Hiermee geeft u het front-end-IP-resourceobject van de toepassingsgateway op.
Type: | PSApplicationGatewayFrontendIPConfiguration |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-FrontendIPConfigurationId
Hiermee geeft u de front-end-IP-id van de toepassingsgateway op.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-FrontendPort
Hiermee geeft u het front-endpoortobject van de toepassingsgateway op.
Type: | PSApplicationGatewayFrontendPort |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-FrontendPortId
Hiermee geeft u de front-endpoort-id van de toepassingsgateway op.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-HostName
Hiermee geeft u de hostnaam op waaraan deze cmdlet een HTTP-listener toevoegt.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-HostNames
Hostnamen
Type: | String[] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Name
Hiermee geeft u de naam op van de front-endpoort die met deze opdracht wordt toegevoegd.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Protocol
Hiermee geeft u het protocol van de HTTP-listener. Zowel HTTP als HTTPS worden ondersteund.
Type: | String |
Geaccepteerde waarden: | Http, Https |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-RequireServerNameIndication
Type: | String |
Geaccepteerde waarden: | true, false |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SslCertificate
Hiermee geeft u het SSL-certificaat van de HTTP-listener. Moet worden opgegeven als HTTPS is gekozen als listenerprotocol.
Type: | PSApplicationGatewaySslCertificate |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SslCertificateId
Hiermee geeft u de SSL-certificaat-id van de HTTP-listener op. Moet worden opgegeven als HTTPS is gekozen als listenerprotocol.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SslProfile
SslProfile
Type: | PSApplicationGatewaySslProfile |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SslProfileId
SslProfileId
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Verwante koppelingen
Azure PowerShell