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.
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.
Related guardrails
- Deny disabling block public access for AMIsAWS, Service control policies (SCPs), public exposure
- Require IAM authentication on Lambda function URLsAWS, Service control policies (SCPs), public exposure
- Deny changes to S3 Block Public Access at bucket levelAWS, Resource control policies (RCPs), public exposure
- Configure storage accounts to disallow public blob accessAzure, Azure Policy (built-in definitions), public exposure
- Storage accounts should disable public network accessAzure, Azure Policy (built-in definitions), public exposure
Related pages
Sources
- Network interfaces should not have public IPs, read 10 Nov 2026
- What it breaks, read 10 Nov 2026
- How to test it first, read 10 Nov 2026
Last reviewed 16 Nov 2026.