# Network interfaces should not have public IPs

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

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.

```text
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](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny))
- **Test before applying:** As for every Azure Policy guardrail: [how to test before enforcing](/mechanisms/azure-policy/)
- **Mechanism:** [Azure Policy (built-in definitions)](/mechanisms/azure-policy/): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
- **Taken from:** [open source set](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Network/NetworkPublicIPNic_Deny.json), 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](/mechanisms/azure-policy/).

## Related guardrails

- [Deny disabling block public access for AMIs](/guardrails/aws-scp-deny-disable-ami-block-public-access/): AWS, Service control policies (SCPs), public exposure
- [Require IAM authentication on Lambda function URLs](/guardrails/aws-scp-require-lambda-url-iam-auth/): AWS, Service control policies (SCPs), public exposure
- [Deny changes to S3 Block Public Access at bucket level](/guardrails/aws-rcp-deny-bucket-public-access-block-changes/): AWS, Resource control policies (RCPs), public exposure
- [Configure storage accounts to disallow public blob access](/guardrails/azure-policy-storage-disable-public-blob/): Azure, Azure Policy (built-in definitions), public exposure
- [Storage accounts should disable public network access](/guardrails/azure-policy-storage-disable-public-network/): Azure, Azure Policy (built-in definitions), public exposure

## Related pages

- [Network interfaces should disable IP forwarding (Azure Azure Policy)](/guardrails/azure-policy-nic-no-ip-forwarding/)
- [Gateway subnets should not have a network security group (Azure Azure Policy)](/guardrails/azure-policy-gateway-subnet-no-nsg/)
- [Configure storage accounts to disallow public blob access (Azure Azure Policy)](/guardrails/azure-policy-storage-disable-public-blob/)

## Sources

- Network interfaces should not have public IPs: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Network/NetworkPublicIPNic_Deny.json (read 10 Nov 2026)
- What it breaks: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny (read 10 Nov 2026)
- How to test it first: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/azure-policy-nic-no-public-ip/
