Set-AzApplicationGatewayUrlPathMapConfig

Hiermee stelt u de configuratie in voor een matrix van URL-padtoewijzingen naar een back-endservergroep.

Syntax

Set-AzApplicationGatewayUrlPathMapConfig
   -ApplicationGateway <PSApplicationGateway>
   -Name <String>
   -PathRules <PSApplicationGatewayPathRule[]>
   -DefaultBackendAddressPool <PSApplicationGatewayBackendAddressPool>
   -DefaultBackendHttpSettings <PSApplicationGatewayBackendHttpSettings>
   [-DefaultRewriteRuleSet <PSApplicationGatewayRewriteRuleSet>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Set-AzApplicationGatewayUrlPathMapConfig
   -ApplicationGateway <PSApplicationGateway>
   -Name <String>
   -PathRules <PSApplicationGatewayPathRule[]>
   -DefaultBackendAddressPoolId <String>
   -DefaultBackendHttpSettingsId <String>
   [-DefaultRewriteRuleSetId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Set-AzApplicationGatewayUrlPathMapConfig
   -ApplicationGateway <PSApplicationGateway>
   -Name <String>
   -PathRules <PSApplicationGatewayPathRule[]>
   [-DefaultRewriteRuleSet <PSApplicationGatewayRewriteRuleSet>]
   -DefaultRedirectConfiguration <PSApplicationGatewayRedirectConfiguration>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Set-AzApplicationGatewayUrlPathMapConfig
   -ApplicationGateway <PSApplicationGateway>
   -Name <String>
   -PathRules <PSApplicationGatewayPathRule[]>
   [-DefaultRewriteRuleSetId <String>]
   -DefaultRedirectConfigurationId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

De cmdlet Set-AzApplicationGatewayUrlPathMapConfig stelt de configuratie in voor een matrix van URL-padtoewijzingen naar een back-endservergroep.

Voorbeelden

Voorbeeld 1: Een URL-padtoewijzing bijwerken

$appgw = Get-AzApplicationGateway -ResourceGroupName "rg" -Name "appGwName"
$appgw = Set-AzApplicationGatewayUrlPathMapConfig -ApplicationGateway $appgw -Name "map01"
$appgw = Set-AzApplicationGateway -ApplicationGateway $appgw

Met de eerste opdracht wordt de toepassingsgateway met de naam appGwName opgeslagen en wordt het resultaat opgeslagen in de $appgw variabele. Met de tweede opdracht wordt de toewijzing van het URL-pad met de naam map01 in de toepassingsgateway bijgewerkt. Met de derde opdracht wordt de toepassingsgateway bijgewerkt.

Parameters

-ApplicationGateway

Hiermee geeft u de toepassingsgateway op waarnaar deze cmdlet een configuratie voor url-padtoewijzing instelt.

Type:PSApplicationGateway
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DefaultBackendAddressPool

Hiermee geeft u de standaard back-endadresgroep om te routeren als geen van de regels die zijn opgegeven in de parameter pathRules overeenkomen.

Type:PSApplicationGatewayBackendAddressPool
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultBackendAddressPoolId

Hiermee geeft u de standaard-id van de back-endadresgroep op.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultBackendHttpSettings

Hiermee geeft u de standaard-BACK-end HTTP-instellingen te gebruiken voor het geval geen van de regels die zijn opgegeven in de parameter pathRules overeenkomen.

Type:PSApplicationGatewayBackendHttpSettings
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultBackendHttpSettingsId

Hiermee geeft u de standaard-BACK-end HTTP-instellingen-id.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

De referenties, het account, de tenant en het abonnement die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultRedirectConfiguration

Standaard RedirectConfiguration voor Application Gateway

Type:PSApplicationGatewayRedirectConfiguration
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultRedirectConfigurationId

Id van de standaard redirectConfiguration van de toepassingsgateway

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultRewriteRuleSet

Standaardregelset voor herschrijven van toepassingsgateway

Type:PSApplicationGatewayRewriteRuleSet
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultRewriteRuleSetId

Id van de standaardregelset voor herschrijven van de toepassingsgateway

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Hiermee geeft u de naam van de URL-padtoewijzing waarin deze cmdlet de configuratie instelt voor.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PathRules

Hiermee geeft u een lijst met padregels. Houd er rekening mee dat de padregels volgordegevoelig zijn. Ze worden toegepast in de volgorde waarin ze zijn opgegeven.

Type:PSApplicationGatewayPathRule[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

PSApplicationGateway

Uitvoerwaarden

PSApplicationGateway