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 WhatIf Microsoft.Network/firewallPolicies : size #367

Open
dj-r1 opened this issue May 13, 2024 · 1 comment
Open

Noise in WhatIf Microsoft.Network/firewallPolicies : size #367

dj-r1 opened this issue May 13, 2024 · 1 comment

Comments

@dj-r1
Copy link

dj-r1 commented May 13, 2024

Describe the noise

Resource type
Microsoft.Network/firewallPolicies

apiVersion
2023-09-01

Client (PowerShell, Azure CLI, or API)
PowerShell

Relevant ARM Template code

resource firewallPolicies 'Microsoft.Network/firewallPolicies@2023-09-01' = {
  name: firewallPolicyName
  location: location
  properties: {
    sku: {
      tier: 'Basic'
    }
    threatIntelMode: 'Alert'
  }
}

Expected response

{
  "apiVersion": "2023-09-01",
  "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUP_NAME/providers/Microsoft.Network/firewallPolicies/RESOURCENAME-fw-policy",
  "location": "polandcentral",
  "name": "RESOURCENAME-fw-policy",
  "properties": {
    "sku": {
      "tier": "Basic"
    },
    "threatIntelMode": "Alert"
  },
  "type": "Microsoft.Network/firewallPolicies"
}

Current (noisy) response

{
  "apiVersion": "2023-09-01",
  "id": "/subscriptions/0000bb0-000b-0bb0-0000-bb00b0b0b00/resourceGroups/MY_RESOURCE_GROUP_NAME/providers/Microsoft.Network/firewallPolicies/RESOURCENAME-fw-policy",
  "location": "polandcentral",
  "name": "RESOURCENAME-fw-policy",
  "properties": {
    "size": "0.001879692 MB",
    "sku": {
      "tier": "Basic"
    },
    "threatIntelMode": "Alert"
  },
  "type": "Microsoft.Network/firewallPolicies"
}

Additional context

WhatIf should not output parameter like size
Noisy parameters:

  • properties.size
@dj-r1
Copy link
Author

dj-r1 commented Oct 24, 2024

properties.size is returned in Azure REST API (Firewall Policies - Get) and also shown in example firewallPolicy.json (Azure REST API Specifications), so I think WhatIf operation would need to suppress it.

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