Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.21k stars 3.82k forks source link

Is this feature working? #25589

Open Lycrosa opened 2 months ago

Lycrosa commented 2 months ago

Type of issue

Other (describe below)

Feedback

Hello,

I tried getting this feature to work. I think I did everything right (at least I did not get any error messages and can't find any log suggesting otherwhise).

My Policy looks like this:

SourceAddresses         : {*}
TargetFqdns             : {login.microsoftonline.com, login.microsoft.com, login.windows.net}
FqdnTags                : {}
Protocols               : {Microsoft.Azure.Commands.Network.Models.PSAzureFirewallPolicyApplicationRuleProtocol,
                          Microsoft.Azure.Commands.Network.Models.PSAzureFirewallPolicyApplicationRuleProtocol}
SourceIpGroups          : {}
WebCategories           : {}
TargetUrls              : {}
TerminateTLS            : True
HttpHeadersToInsert     : {Restrict-Access-To-Tenants, Restrict-Access-Context}
Description             :
ProtocolsText           : [
                            {
                              "protocolType": "Http",
                              "port": 80
                            },
                            {
                              "protocolType": "Https",
                              "port": 443
                            }
                          ]
SourceAddressesText     : [
                            "*"
                          ]
SourceIpGroupsText      : []
TargetFqdnsText         : [
                            "login.microsoftonline.com",
                            "login.microsoft.com",
                            "login.windows.net"
                          ]
FqdnTagsText            : []
WebCategoriesText       : []
TargetUrlsText          : []
HttpHeadersToInsertText : [
                            {
                              "headerName": "Restrict-Access-To-Tenants",
                              "headerValue": "111fd61c-a2a5-4514-8a8a-f923d46b9b79"
                            },
                            {
                              "headerName": "Restrict-Access-Context",
                              "headerValue": "111fd61c-a2a5-4514-8a8a-f923d46b9b79"
                            }
                          ]
Name                    : restricttenant
RuleType                : ApplicationRule

However the header is not beeing inserted. Is this feature active? If not is there a timeline as when it is? Any information is greatly appreciated.

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.network/new-azfirewallpolicyapplicationrulecustomhttpheader?view=azps-12.1.0

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/Network/Network/help/New-AzFirewallPolicyApplicationRuleCustomHttpHeader.md

Author

@mikefrobbins

Document Id

5632839f-f7b1-f5ef-9e3f-25b6f8101125

isra-fel commented 1 month ago

Sorry for late response. Let me loop in the Policy team. Could you also share your script and debug log as well?

Script & Debug output

Set $DebugPreference='Continue' before running the repro and paste the resulting debug stream in the comments. ⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs

microsoft-github-policy-service[bot] commented 1 month ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aperezcloud, @kenieva.