Greetings,
The ports you are enabling in the NSG tabs are the firewall equivalents provided from the Azure side for the subnet level. They will not disturb or manipulate VM specific firewall policies/ports. You need to enable /disable VM internal port separately.
If you think your question has been answered, click
"Mark as Answer" if just helped click
"Vote as helpful". This can be beneficial to other community members reading this forum thread.
_______________________________________________________________________
Best regards
Subhash