Forum Discussion

Himanshu Sethi's avatar
Himanshu Sethi
Copper Contributor
Feb 20, 2018

Change NSG for an Azure VM

How can we add/change Network Security Group to an already configured Azure Virtual Machine? I am not getting any option of selecting a different NSG.

 

 

 

3 Replies

  • It is quite easy to associate an NSG to a NiC or subnet, Generally I think it is better to associate it to the subnet and have all the rules for that subnet in a single NSG. But this may require some thought and complexity. To Associate select the NSG in the list of resources, or create a new one, on the NSG blade there is two items Subnets and Network interfaces, select the appropriate one and click associate...
  • RuudGijsbers's avatar
    RuudGijsbers
    Iron Contributor

    Hello Himanshu,

     

    You can only associate a NSG to a classic VM. If you're using an Resource manager VM, you can associate the NSG to the NIC or the subnet.

     

    Best regards,

    Ruud Gijsbers

Resources