你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzApplicationGatewayHeaderValueMatcher
创建 HeaderValueMatcher 对象配置,以便在应用程序网关的 ApplicationGatewayRewriteRuleHeaderConfiguration 中使用。
PowerShell
New-AzApplicationGatewayHeaderValueMatcher
-Pattern <String>
[-IgnoreCase]
[-Negate]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzApplicationGatewayHeaderValueMatcher cmdlet 为 Azure 应用程序网关创建标头值匹配器对象。
PowerShell
$hvm = New-AzApplicationGatewayHeaderValueMatcher -Pattern ".*" -IgnoreCase -Negate
$requestHeaderConfiguration01 = New-AzApplicationGatewayRewriteRuleHeaderConfiguration -HeaderName "Set-Cookie" -HeaderValue "val" -HeaderValueMatcher $headerValueMatcher
此命令创建 HeaderValueMatcher 配置,并将结果存储在名为 $hvm 的变量中,然后在 ApplicationGatewayRewriteRuleHeaderConfiguration 对象中使用。
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
将此标志设置为在模式匹配期间忽略
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
设置此标志以否定与标头值匹配模式的结果
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
在标头值中查找的模式
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
None
- New-AzApplicationGatewayRewriteRuleHeaderConfiguration
- Add-AzApplicationGatewayRewriteRuleSet
- Get-AzApplicationGatewayRewriteRuleSet
- New-AzApplicationGatewayRewriteRuleSet
- Remove-AzApplicationGatewayRewriteRuleSet
- Set-AzApplicationGatewayRewriteRuleSet
- New-AzApplicationGatewayRewriteRule
- New-AzApplicationGatewayRewriteRuleActionSet
- 使用应用程序网关重写 HTTP 标头和 URL