Skip to main content

๐Ÿ›ก๏ธ 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 Type: COMPLIANCE_POLICY
  • Policy Categories: COST

Statsโ€‹

not available

Logicโ€‹

Descriptionโ€‹

Open File

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 INCOMPLIANT if its Provisioning State is Succeeded and it has no related Azure Network Subnet with a Provisioning State of Succeeded.

An eligible gateway with at least one successfully provisioned related subnet is COMPLIANT. A gateway that is not successfully provisioned is INAPPLICABLE; missing gateway or related-subnet provisioning-state data is UNDETERMINED.

Remediationโ€‹

Open File

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โ€‹
  1. Open NAT gateways and select the NAT Gateway.
  2. Select Subnets, then select the virtual network and subnet or subnets to associate.
  3. 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โ€‹

Open File

Linked Framework Sectionsโ€‹

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
๐Ÿ’ผ Cloudaware Framework โ†’ ๐Ÿ’ผ Waste Reduction30no data