Skip to main content

โญ Repository โ†’ ๐Ÿ“ Compliance Engine โ†’ ๐Ÿ“ CloudAware โ†’ ๐Ÿ“ Azure โ†’ ๐Ÿ“ Virtual Network

๐Ÿ›ก๏ธ Azure Public IP Address is not associated with any resource๐ŸŸข

  • Contextual name: ๐Ÿ›ก๏ธ Public IP Address is not associated with any resource๐ŸŸข
  • ID: /ce/ca/azure/virtual-network/unused-public-ip-address
  • Tags:
  • Policy Type: COMPLIANCE_POLICY
  • Policy Categories: SECURITY, COST

Logicโ€‹

Descriptionโ€‹

Open File

Descriptionโ€‹

Evaluate and remove Azure Public IP Addresses that are not currently associated with any Azure resource to minimize unnecessary costs and reduce resource clutter.

Rationalโ€‹

Unassociated Public IP Addresses in Azure incur charges on an hourly basis despite not being attached to any active service. Proactively identifying and deallocating these unused IPs is an effective cost-optimization strategy.

Beyond cost implications, unassociated Public IPs may represent residual network exposure. While they do not directly expose a running workload, their presence can complicate network visibility, increase the attack surface, and hinder security posture management. Eliminating unused public IPs contributes to a cleaner, more secure, and manageable cloud environment.

Auditโ€‹

This policy marks an Azure Public IP Address as INCOMPLIANT if the Associated Resource ID field is empty, indicating no active associations with IP Configurations.

Remediationโ€‹

Open File

Remediationโ€‹

Deallocate the Unused Public IP Addressโ€‹

If a Public IP Address is confirmed to be unused and not required by any current or planned service, it should be deleted to prevent ongoing charges and reduce the potential network exposure.

Azure CLIโ€‹
az network public-ip delete \
--resource-group {{resource-group-name}} \
--name {{public-ip-name}}
PowerShellโ€‹
Remove-AzPublicIpAddress `
-Name "{{public-ip-name}}" `
-ResourceGroupName "{{resource-group-name}}"

Considerationsโ€‹

  • Ensure that the Public IP Address is not reserved for future use or linked to a pending deployment. Accidental deletion may cause disruption to planned services.
  • If the Public IP was recently detached due to the deletion of a dependent resource, verify that the resource removal was intentional and permanent.

policy.yamlโ€‹

Open File

Linked Framework Sectionsโ€‹

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
๐Ÿ’ผ Cloudaware Framework โ†’ ๐Ÿ’ผ Public and Anonymous Access80no data
๐Ÿ’ผ Cloudaware Framework โ†’ ๐Ÿ’ผ Waste Reduction25no data