Associating an ASG with a VM
After creating an ASG, we must associate it with a VM. After this is done, we can create rules with the NSG and ASG for traffic control.
Getting ready
Before you start, open your browser and go to the Azure portal at https://portal.azure.com. Locate the previously created VM.
How to do it...
To associate an ASG with a VM, we must follow these steps:
- In the VM pane, locate the Networking settings.
- In the Networking settings, select the Application security groups tab, as shown in Figure 3.12:
Figure 3.12: Associating an ASG with a VM
- In the Application security groups settings, select Configure the application security groups, as shown in Figure 3.13:
Figure 3.13: Configuring ASGs
- In the new pane from the list of available ASGs, select the ASG that you want to associate the VM with:
Figure 3.14: Associating an ASG with a VM
- After clicking Save, it takes a few seconds to apply the changes, after which the VM will be associated...