다음을 통해 공유


Set-AzureRmApplicationGatewayRedirectConfiguration

기존 Application Gateway에서 리디렉션 구성을 설정합니다.

Warning

AzureRM PowerShell 모듈은 2024년 2월 29일부터 공식적으로 사용되지 않습니다. 사용자는 지속적인 지원 및 업데이트를 보장하기 위해 AzureRM에서 Az PowerShell 모듈로 마이그레이션하는 것이 좋습니다.

AzureRM 모듈은 여전히 작동할 수 있지만 더 이상 기본 또는 지원되지 않으므로 사용자의 재량에 따라 계속 사용할 수 있습니다. Az 모듈로 전환하는 방법에 대한 지침은 마이그레이션 리소스를 참조하세요.

구문

Set-AzureRmApplicationGatewayRedirectConfiguration
   -ApplicationGateway <PSApplicationGateway>
   -Name <String>
   -RedirectType <String>
   [-TargetListenerID <String>]
   [-IncludePath <Boolean>]
   [-IncludeQueryString <Boolean>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Set-AzureRmApplicationGatewayRedirectConfiguration
   -ApplicationGateway <PSApplicationGateway>
   -Name <String>
   -RedirectType <String>
   [-TargetListener <PSApplicationGatewayHttpListener>]
   [-IncludePath <Boolean>]
   [-IncludeQueryString <Boolean>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Set-AzureRmApplicationGatewayRedirectConfiguration
   -ApplicationGateway <PSApplicationGateway>
   -Name <String>
   -RedirectType <String>
   [-TargetUrl <String>]
   [-IncludePath <Boolean>]
   [-IncludeQueryString <Boolean>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Set-AzureRmApplicationGatewayRequestRoutingRule cmdlet은 리디렉션 구성을 수정합니다.

예제

예 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"

첫 번째 명령은 ApplicationGateway01이라는 애플리케이션 게이트웨이를 가져오고 $AppGw 변수에 저장합니다. 두 번째 명령은 영구 형식을 리디렉션하고 대상 URL을 사용하도록 애플리케이션 게이트웨이에 대한 리디렉션 구성을 수정합니다.

매개 변수

-ApplicationGateway

applicationGateway

형식:PSApplicationGateway
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:True
와일드카드 문자 허용:False

-DefaultProfile

Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.

형식:IAzureContextContainer
별칭:AzureRmContext, AzureCredential
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-IncludePath

리디렉션된 URL에 경로를 포함합니다. 기본값은 true입니다.

형식:Nullable<T>[Boolean]
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-IncludeQueryString

리디렉션된 URL에 쿼리 문자열을 포함합니다. 기본값은 true입니다.

형식:Nullable<T>[Boolean]
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-Name

리디렉션 구성의 이름

형식:String
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-RedirectType

리디렉션 유형

형식:String
허용되는 값:Permanent, Found, SeeOther, Temporary
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-TargetListener

요청을 리디렉션하는 HTTPListener

형식:PSApplicationGatewayHttpListener
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-TargetListenerID

요청을 리디렉션할 수신기의 ID

형식:String
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-TargetUrl

리디렉션에 대한 대상 URL

형식:String
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

입력

PSApplicationGateway

매개 변수: ApplicationGateway(ByValue)

출력

PSApplicationGateway