question

DavidKang-3752 avatar image
0 Votes"
DavidKang-3752 asked TravisCragg-MSFT commented

Adding existing subnet to a NAT Gateway - getting error

I an existing subnet with internal default subnet with internal IP range 10.0.0.0/24. while i am adding that to NAT gateway it is giving an error : Failed to update the NAT Gateway 'DS-Outbound'. Error: NAT Gateway DS-Outbound cannot be deployed on subnet containing Basic SKU Public IP addresses or Basic SKU Load Balancer.

azure-virtual-network
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
0 Votes"
LeonLaude answered

Hi,

NAT is compatible with standard SKU public IP, public IP prefix, and load balancer resources. Basic resources (for example basic load balancer) and any products derived from them aren't compatible with NAT. Basic resources must be placed on a subnet not configured with NAT.

A NAT gateway is compatible with the following:

  • Standard load balancer

  • Standard public IP

  • Standard public IP prefix

As per the error message you are using a Basic Public IP address or Basic Load Balancer.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-network/nat-gateway-resource#limitations

(Please don't forget to accept helpful replies as answer)

Best regards,
Leon






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidKang-3752 avatar image
0 Votes"
DavidKang-3752 answered

We have a client/server application from our service provider. Clients are installed on multiple VM in Azure. Server is outside of Azure hosted by service provider.


I have to provide a static IP to external service provide so that they can white list our single IP for multiple Clients/VM can connect to Server. So there will be multiple VM behind this single IP.

VM are in existing Net (myNet) and subnet (mySubNet).

Approach i followed:
1. I have created NAT Gateway with in MyNet and its MyNetSubnetNAT and Public static IP (NATPublicIP)

But VM did not use the NATPublicIP.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidKang-3752 avatar image
0 Votes"
DavidKang-3752 answered TravisCragg-MSFT commented

2nd Approach i followed: 1. I have created NAT Gateway with in MyNet and its mySubNet and Public static IP (NATPublicIP) . So the NAT gateway is using the same virtual network and subnet used my VM still VM is not getting the Public static IP assigned to NATPublicIP

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Once you have successfully configured a subnet for NAT, all outbound connections should be showing as coming from your Public IP on the NAT service. Make sure that you have properly configured Azure NAT service for that subnet.

How are you checking your Public IP that your VMs are sending the requests from?

0 Votes 0 ·