I am trying to change the network security group in a VM, from azure portal. From azure portal and going to Networking, I can see the actual network security group ("mygroup1"). I want to change it to "mygroup2".
If I press the Network security group name I can navigate to the azure portal but I cannot see the way to change the actual Network security group from my VM to a new existing one.
EDIT: The VM is connected. I suspect to do this I also have to shut it down I guess.
Can anyone help?