QuestionQ292

VerifiedImplement and manage virtual networking

You have an Azure virtual machine named VM1 that runs Windows Server 2016.

You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.

Solution: You shut down VM1, and then add a new network interface to VM1.

Does this achieve the goal?

Explanation

This does not meet the goal. Stopping VM1 lets you attach another network interface, but every network interface on a VM must be connected to the same virtual network as the VM's existing network interface, and a network interface must be in the same region and subscription as both its virtual network and the VM. So adding a NIC can't attach VM1 to VNET2. You can't change the virtual network that a VM or NIC is connected to; VM1 can be connected to VNET2 only by deleting it and re-creating it with a network interface in VNET2.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!