New-AzApplicationGatewayRewriteRule
Creates a rewrite rule for an application gateway.
構文
Default (既定)
New-AzApplicationGatewayRewriteRule
-Name <String>
-ActionSet <PSApplicationGatewayRewriteRuleActionSet>
[-RuleSequence <Int32>]
[-Condition <PSApplicationGatewayRewriteRuleCondition[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
The New-AzApplicationGatewayRewriteRule cmdlet creates a rewrite rule for an Azure application gateway.
例
Example 1 : Create a rewrite rule for an application gateway
$rule = New-AzApplicationGatewayRewriteRule -Name rule1 -ActionSet $action -RuleSequence 101 -Condition $condition
This command creates a rewrite rule named rule1 and stores the result in the variable named $rule.
パラメーター
-ActionSet
ActionSet of the rewrite rule
パラメーターのプロパティ
パラメーター セット
(All)
配置: Named
必須: True
パイプラインからの値: False
プロパティ名別のパイプラインからの値: False
残りの引数からの値: False
-Condition
Condition for the rewrite rule to execute
パラメーターのプロパティ
パラメーター セット
(All)
配置: Named
必須: False
パイプラインからの値: False
プロパティ名別のパイプラインからの値: False
残りの引数からの値: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
パラメーターのプロパティ
型: IAzureContextContainer
規定値: None
ワイルドカードのサポート: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
パラメーター セット
(All)
配置: Named
必須: False
パイプラインからの値: False
プロパティ名別のパイプラインからの値: False
残りの引数からの値: False
-Name
The name of the RewriteRule
パラメーターのプロパティ
型: String
規定値: None
ワイルドカードのサポート: False
DontShow: False
パラメーター セット
(All)
配置: Named
必須: True
パイプラインからの値: False
プロパティ名別のパイプラインからの値: False
残りの引数からの値: False
-RuleSequence
The rule ordering of this rewrite rule in the rewrite rule set
パラメーターのプロパティ
型: Int32
規定値: None
ワイルドカードのサポート: False
DontShow: False
パラメーター セット
(All)
配置: Named
必須: False
パイプラインからの値: False
プロパティ名別のパイプラインからの値: False
残りの引数からの値: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
None
出力