< Back

Set-AzureRmApplicationGatewayRedirectConfiguration

Tue Jan 29, 2019 9:57 pm

NAME Set-AzureRmApplicationGatewayRedirectConfiguration



SYNOPSIS

Sets the redirect configuration on an existing Application Gateway.





SYNTAX

Set-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]

[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary} [-TargetListener

<PSApplicationGatewayHttpListener>] [<CommonParameters>]



Set-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]

[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary}

[-TargetListenerID <String>] [<CommonParameters>]



Set-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]

[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary} [-TargetUrl

<String>] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmApplicationGatewayRequestRoutingRule cmdlet modifies a redirect configuration.





PARAMETERS

-ApplicationGateway <PSApplicationGateway>

The applicationGateway



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IncludePath <Boolean>

Include path in the redirected url. Default is true.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IncludeQueryString <Boolean>

Include query string in the redirected url. Default is true.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

The name of the Redirect Configuration



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RedirectType <String>

The type of redirect



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TargetListener <PSApplicationGatewayHttpListener>

HTTPListener to redirect the request to



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TargetListenerID <String>

ID of listener to redirect the request to



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TargetUrl <String>

Target URL fo redirection



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.Network.Models.PSApplicationGateway







OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSApplicationGateway







NOTES









Example 1



PS C:\\>$AppGw = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"

PS C:\\> $AppGw = Set-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway $appgw -Name "RedirectConfig01" -RedirectType Permanent

-TargetUrl "https://www.contoso.com"



The first command gets the application gateway named ApplicationGateway01 and stores it in the $AppGw variable.



The second command modifies the redirect configuration for the application gateway to redirect type Permanent and use a target url.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... figuration