Skip to content
Cloud Governance Tools

Network interfaces should not have public IPs

Network interfaces should not have public IPs is an Azure guardrail written in Azure Policy. Denies network interfaces that are configured with a public IP address. What it breaks: existing network interfaces that already have a public IP are marked non-compliant but not changed.

More public exposure guardrails ยท About Azure Policy

Built-in policy definition: Network interfaces should not have public IPs
Definition ID: 83a86a26-fd1f-447c-b59d-e51f44264114
Category: Network
Supported effects: deny
policyRule (copied from the repository file):
{
    "if": {
      "allOf": [
        {
          "field": "type",
          "equals": "Microsoft.Network/networkInterfaces"
        },
        {
          "not": {
            "field": "Microsoft.Network/networkInterfaces/ipconfigurations[*].publicIpAddress.id",
            "notLike": "*"
          }
        }
      ]
    },
    "then": {
      "effect": "deny"
    }
  }
Blocks
Denies network interfaces that are configured with a public IP address.
Breaks
Existing network interfaces that already have a public IP are marked non-compliant but not changed. (source)
Test before applying
As for every Azure Policy guardrail: how to test before enforcing
Mechanism
Azure Policy (built-in definitions): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
Taken from
open source set, MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE

What the source says

"This policy denies the network interfaces which are configured with any public IP." (read 10 Nov 2026).

What it breaks is documented for every guardrail of this mechanism: see Azure Policy.

Sources

  1. Network interfaces should not have public IPs, read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026
  3. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.