< Back
Add-AzureRmApplicationGatewayRedirectConfiguration
Post
NAME Add-AzureRmApplicationGatewayRedirectConfiguration
SYNOPSIS
Adds a redirect configuration to an Application Gateway.
SYNTAX
Add-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]
[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary} [-TargetListener
<PSApplicationGatewayHttpListener>] [<CommonParameters>]
Add-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]
[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary}
[-TargetListenerID <String>] [<CommonParameters>]
Add-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]
[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary} [-TargetUrl
<String>] [<CommonParameters>]
DESCRIPTION
The Add-AzureRmApplicationGatewayRedirectConfiguration cmdlet adds a redirect configuration to an Application Gateway.
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 = Add-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway $AppGw -Name "Redirect01" -RedirectType Permanent
-TargetListener $listener01
The first command gets the application gateway and stores it in the $AppGw variable. The second command adds the redirect configuration to the
application gateway.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... figuration
SYNOPSIS
Adds a redirect configuration to an Application Gateway.
SYNTAX
Add-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]
[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary} [-TargetListener
<PSApplicationGatewayHttpListener>] [<CommonParameters>]
Add-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]
[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary}
[-TargetListenerID <String>] [<CommonParameters>]
Add-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway <PSApplicationGateway> [-DefaultProfile <IAzureContextContainer>]
[-IncludePath <Boolean>] [-IncludeQueryString <Boolean>] -Name <String> -RedirectType {Permanent | Found | SeeOther | Temporary} [-TargetUrl
<String>] [<CommonParameters>]
DESCRIPTION
The Add-AzureRmApplicationGatewayRedirectConfiguration cmdlet adds a redirect configuration to an Application Gateway.
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 = Add-AzureRmApplicationGatewayRedirectConfiguration -ApplicationGateway $AppGw -Name "Redirect01" -RedirectType Permanent
-TargetListener $listener01
The first command gets the application gateway and stores it in the $AppGw variable. The second command adds the redirect configuration to the
application gateway.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... figuration