SIMULATION -
You need to add the network interface of a virtual machine named VM1 to an application security group named ASG1.
To complete this task, sign in to the Azure portal.
See the explanation below.
1. In the Search resources, services, and docs box at the top of the portal, begin typing the name of a virtual machine, VM1 that has a network interface that you want to add to, or remove from, an application security group.
2. When the name of your VM appears in the search results, select it.
3. Under SETTINGS, select Networking. Select Configure the application security groups, select the application security groups that you want to add the network interface to, or unselect the application security groups that you want to remove the network interface from, and then select Save.
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interfaceSure, here's a step-by-step guide on how to add the network interface of a virtual machine to an application security group using the Azure portal:
First, navigate to the Azure portal by typing portal.azure.com into your web browser and sign in with your Azure credentials.
Once you're signed in, search for "Virtual machines" in the search bar at the top of the portal, and click on the "Virtual machines" option that appears.
Find the virtual machine named VM1 that you want to add to the application security group. Click on the virtual machine to open its details page.
On the virtual machine's details page, click on the "Networking" tab.
Under "Networking interfaces," click on the network interface that you want to add to the application security group. This will open the details page for the network interface.
On the network interface's details page, click on the "Configuration" tab.
Scroll down to the "IP configurations" section and click on the name of the IP configuration.
On the IP configuration details page, scroll down to the "Application security groups" section and click the "+ Add" button.
In the "Add application security group" pane, select the application security group named ASG1 that you want to add the network interface to, and click "Add".
Click "Save" to save the changes you've made.
That's it! You've now added the network interface of VM1 to the ASG1 application security group.