Azurerm NSG association issue

Hi all,

I’m learning TF… i had successfully using TF to create VNET and subnet.
But when I’m going to associate the NSG to the subnet.
I found that the code can apply without issue but once the NSG assigned to the subnet. It will remove from the subnet immediately. Am I missed any config? Appreciate your help.

Issue resolved because of the tagging update.