Skip to content

New-AzFirewallPolicyApplicationRule Forces Protocol to Https:443 #28509

@bewatersmsft

Description

@bewatersmsft

Description

Currently when running New-AzFirewallPolicyApplicationRule -Protocol "Http:80". It is forced to use FQDNTag and gets forced into Https protocol

Because FQDN tag is required https is always injected

Issue script & Debug output

 bewaters  $apprule = New-AzFirewallPolicyApplicationRule -Name "rule" -SourceIpGroup $ipg.Id -WebCategory "Games" -Protocol "Http:80" -FqdnTag "HDInsight"
 bewaters  $appRule


SourceAddresses         :
TargetFqdns             :
FqdnTags                : {HDInsight}
Protocols               : {Microsoft.Azure.Commands.Network.Models.PSAzureFirewallPolicyApplicationRuleProtocol}
SourceIpGroups          : {/subscriptions/e7eb2257-46e4-4826-94df-153853fea38f/resourcegroups/bewatersrepro/providers/Microsoft.Network/ipGroups/repro}
WebCategories           : {Games}
TargetUrls              :
TerminateTLS            :
HttpHeadersToInsert     :
Description             :
ProtocolsText           : [
                            {
                              "protocolType": "Https",
                              "port": 443
                            }
                          ]
SourceAddressesText     : null
SourceIpGroupsText      : [
                            "/subscriptions/e7eb2257-46e4-4826-94df-153853fea38f/resourcegroups/bewatersrepro/providers/Microsoft.Network/ipGroups/repro"
                          ]
TargetFqdnsText         : null
FqdnTagsText            : [
                            "HDInsight"
                          ]
WebCategoriesText       : [
                            "Games"
                          ]
TargetUrlsText          : null
HttpHeadersToInsertText : null
Name                    : rule
RuleType                : ApplicationRule

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.26100.4768
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.4768
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

Get-Module Az.Network

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     7.19.1     Az.Network

Error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Network - FirewallService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions