Reading Time: < 1 minute Assign Application Security Group and Network Security Group to Azure VMs you want with PowerShell.
Azure Application Security Groups
Reading Time: 3 minutes Application security groups enable you to configure network security as a natural extension of an application’s structure, allowing you to group virtual machines and define network security policies based on those groups.