Azure / PSRule.Rules.Azure

Rules to validate Azure resources and infrastructure as code (IaC) using PSRule.
https://azure.github.io/PSRule.Rules.Azure/
MIT License
394 stars 85 forks source link

[RULE] Disable default outbound access for virtual machines #3001

Closed BenjaminEngeset closed 3 months ago

BenjaminEngeset commented 3 months ago

Existing rule

No response

Suggested rule

By default, virtual machines (VMs) created in a virtual network without explicit outbound connectivity are assigned a default outbound public IP address. This IP address enables outbound connectivity to the internet.

Why disable default outbound access?

Enabling the private subnet feature on a subnet prevents VMs within that subnet from using default outbound access to connect to public endpoints.

This also applies to VMs within a scale set configured with uniform orchestration mode.

This feature is currently in preview.

Pillar

Security

Additional context