Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noise in Microsoft.Network firewallPolicies/ruleCollectionGroups : size, ipv6Rule #368

Open
dj-r1 opened this issue May 13, 2024 · 0 comments

Comments

@dj-r1
Copy link

dj-r1 commented May 13, 2024

Describe the noise

Resource type
Microsoft.Network firewallPolicies/ruleCollectionGroups

apiVersion
2023-09-01, 2023-11-01

Client (PowerShell, Azure CLI, or API)
PowerShell

Expected response

{
  "apiVersion": "2023-09-01",
  "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUP_NAME/providers/Microsoft.Network/firewallPolicies/RESOURCENAME-policy/ruleCollectionGroups/DefaultNetworkRuleCollectionGroup",
  "location": "global",
  "name": "DefaultNetworkRuleCollectionGroup",
  "properties": {
    "priority": 100,
    "ruleCollections": [
      {
        "action": {
          "type": "Allow"
        },
        "name": "networkRuleCollection1",
        "priority": 1000,
        "ruleCollectionType": "FirewallPolicyFilterRuleCollection",
        "rules": [
          {
            "destinationAddresses": [
              "*"
            ],
            "destinationPorts": [
              "123"
            ],
            "ipProtocols": [
              "Any"
            ],
            "name": "networkRule1",
            "ruleType": "NetworkRule",
            "sourceAddresses": [
              "*"
            ]
          }
        ]
      }
    ],
  },
  "type": "Microsoft.Network/firewallPolicies/ruleCollectionGroups"
}

Current (noisy) response

{
  "apiVersion": "2023-09-01",
  "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUP_NAME/providers/Microsoft.Network/firewallPolicies/RESOURCENAME-policy/ruleCollectionGroups/DefaultNetworkRuleCollectionGroup",
  "location": "global",
  "name": "DefaultNetworkRuleCollectionGroup",
  "properties": {
    "priority": 100,
    "ruleCollections": [
      {
        "action": {
          "type": "Allow"
        },
        "name": "networkRuleCollection1",
        "priority": 1000,
        "ruleCollectionType": "FirewallPolicyFilterRuleCollection",
        "rules": [
          {
            "destinationAddresses": [
              "*"
            ],
            "destinationPorts": [
              "123"
            ],
            "ipProtocols": [
              "Any"
            ],
            "ipv6Rule": false,
            "name": "networkRule1",
            "ruleType": "NetworkRule",
            "sourceAddresses": [
              "*"
            ]
          }
        ]
      }
    ],
    "size": "0.001937866 MB"
  },
  "type": "Microsoft.Network/firewallPolicies/ruleCollectionGroups"
}

Additional context

WhatIf should not output parameters like size, ipv6Rule
Noisy parameters:

  • properties.size
  • properties.ruleCollections[0].rules[0].ipv6Rule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant