How to fix nat gateway issue?

Ashutosh Kumar 0 Reputation points
2025-02-13T17:44:12.26+00:00

I am having a private subnet and I want to use nat gateway to access internet. But when I am configuring route table I am unable to see nat gateway in the next hop type. I am unable to ping 8.8.8.8 through my private vm

Azure NAT Gateway
Azure NAT Gateway
NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
50 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 35,360 Reputation points MVP
    2025-02-13T17:55:22.61+00:00

    You do not configure NAT by using routing tables/custom routes (at least not directly). Instead, you need to configure the Security settings of the subnet, as described in https://learn.microsoft.com/en-us/azure/nat-gateway/quickstart-create-nat-gateway-portal


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.