Why Azure NIC effective routes different from Get-NetRoute result inside VM?

Szabolcs 21 Reputation points
2022-02-16T09:46:36.857+00:00

Hi!
I assumed "Effective routes" of a network interface in Azure should be the same as the response of Get-NetRoute cmdlet in VM that the network interface is attached to.
Why Is the difference and how can I enforce/sync "Effective routes" to be applied for VM?
thanks

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,507 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,384 questions
0 comments No comments
{count} votes

Accepted answer
  1. suvasara-MSFT 10,041 Reputation points
    2022-02-17T05:31:07.06+00:00

    Apologies for the confusion here. Yes, both firewall rules and routes at OS level will be different from Azure level routes. The route table created on Azure will not imprint those routes on guest OS level.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. suvasara-MSFT 10,041 Reputation points
    2022-02-16T14:18:02.517+00:00

    Effective routes on the NIC are the combination of routes from the multiple route tables attached to that NIC. Whereas Windows firewall is an OS level firewall system. The NSG's or UDR's created on top of Azure VM level NIC will not alter OS level firewall configuration. To implement route sync between them needs a manual configuration.


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    0 comments No comments

  2. Szabolcs 21 Reputation points
    2022-02-16T18:02:32.62+00:00

    Thanks for response, but my question is about routing and has nothing to do with firewalls or NSG's.
    regards
    Szabolcs

    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.