Reading Time: < 1 minute

Find the Azure VMs you need to assign the Application Security Group you have already created:

Then assign the Network Security Groups -you have already created- to the Azure VMs you want:

Also, check how to create a basic Application Security Group and how to create a Network Security Group that denies outbound access to the internet.

Cheers!