๐ก๏ธ Azure NAT Gateway has no subnet๐ข
- Contextual name: ๐ก๏ธ NAT Gateway has no subnet๐ข
- ID:
/ce/ca/azure/virtual-network/nat-gateway-without-subnet - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
COST
Statsโ
not available
Logicโ
- ๐ง prod.logic.yaml๐ข
Descriptionโ
Descriptionโ
An Azure NAT Gateway provides outbound connectivity only when it is associated with one or more subnets. A provisioned gateway without an active subnet association cannot route subnet traffic and can continue to incur NAT Gateway and public IP address or prefix charges.
Rationaleโ
An unassociated NAT Gateway is usually unused infrastructure or an incomplete network deployment. Identifying it helps reduce avoidable cost and keeps the Azure network configuration aligned with its intended outbound-connectivity design.
Impactโ
Associating a NAT Gateway changes the outbound internet connectivity for resources in the selected subnet. Confirm the required outbound IP addresses, routing dependencies, and change window before associating or deleting the gateway.
Auditโ
This policy marks an Azure NAT Gateway as
INCOMPLIANTif itsProvisioning StateisSucceededand it has no related Azure Network Subnet with aProvisioning StateofSucceeded.An eligible gateway with at least one successfully provisioned related subnet is
COMPLIANT. A gateway that is not successfully provisioned isINAPPLICABLE; missing gateway or related-subnet provisioning-state data isUNDETERMINED.
Remediationโ
Remediationโ
Associate the NAT Gateway with a Subnetโ
If the gateway is required for outbound connectivity, associate it with the intended subnet after confirming the required outbound IP addresses, routing dependencies, and affected workloads.
Azure portalโ
- Open NAT gateways and select the NAT Gateway.
- Select Subnets, then select the virtual network and subnet or subnets to associate.
- Save the association and verify outbound connectivity from workloads in each subnet.
Azure CLIโ
az network vnet subnet update \
--resource-group "{{resource-group-name}}" \
--vnet-name "{{virtual-network-name}}" \
--name "{{subnet-name}}" \
--nat-gateway "{{nat-gateway-name}}"Delete an Unused NAT Gatewayโ
If the gateway is not required, delete it only after confirming that no current or planned workload depends on its outbound IP addresses.
az network nat gateway delete \
--resource-group "{{resource-group-name}}" \
--name "{{nat-gateway-name}}"Considerationsโ
- A NAT Gateway changes the outbound IP address used by associated subnets. Confirm firewall, allowlist, and partner integration requirements before association or deletion.
... see more
policy.yamlโ
Linked Framework Sectionsโ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| ๐ผ Cloudaware Framework โ ๐ผ Waste Reduction | 30 | no data |