Azure Network Security Group (NSG) can be attached to what kinds of azure resources

Rajesh Swarnkar 846 Reputation points
2023-01-13T10:52:37.19+00:00

Hi there, I have two basic queries related to Azure Route Table and Azure NSG:

  • NSG can be associated with what kind of resources
  • Route Tables can be associated with what kind of resources
  • Do NSG and Route tables have any pricing? Thanks in advance!
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,035 questions
0 comments No comments
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 45,506 Reputation points Microsoft Employee
    2023-01-13T11:25:45.23+00:00

    Hello @Rajesh Swarnkar ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you have some basic queries related to Azure Route Table and Azure NSGs. I have provided the answers below:

    NSG can be associated with what kind of resources?

    Network security group (NSG) can be associated to any virtual network subnet and/or network interface in a virtual machine.

    Refer: https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works

    https://learn.microsoft.com/en-us/azure/virtual-network/manage-network-security-group?tabs=network-security-group-portal#change-a-network-security-group

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#what-would-be-the-behavior-when-i-apply-both-nsg-and-udr-at-subnet

    Route Tables can be associated with what kind of resources?

    Route tables can be associated to Virtual network subnets.

    Refer: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#user-defined

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#can-i-specify-custom-routing-policies-on-my-vnets-and-subnets

    https://learn.microsoft.com/en-us/azure/virtual-network/manage-route-table#associate-a-route-table-to-a-subnet

    Do NSG and Route tables have any pricing?

    No, there are no additional charges for creating NSGs and route tables in Microsoft Azure.

    Refer screenshot below:

    User's image

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alistair Ross 7,091 Reputation points Microsoft Employee
    2023-01-13T12:09:49.22+00:00

    Hello @Rajesh Swarnkar

    Network Security Groups (NSGs) can only be associated with

    https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works

    Route Tables can only be associated with Virtual Network Subnets

    [https://learn.microsoft.com/en-us/azure/virtual-network/manage-route-table#associate-a-route-table-to-a-subnet

    Network Security Groups and Route tables do not cost to use. Any cost here relates to Virtual networking pricing, Network watcher (if using Traffic Analytics for NSG's) or any diagnostics logs exported for NSG's (though this will be listed as an Azure Monitor, Event hub or Storage account cost as this is where the data will be ingested)

    I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.

    Kind regards

    Alistair

    Edit: I had this in draft while dealing with another issue and I can see @GitaraniSharma-MSFT has also responded. Apologies in advanced for two answers 😅

    1 person found this answer helpful.