QuestionQ293

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: Delete VM1. Re-create VM1, and then create a new network interface for VM1 and connect it to VNET2.

Does this satisfy the goal?

Explanation

An Azure virtual machine cannot be moved directly from one virtual network to another due to architectural constraints—the VNet is determined at VM creation. The only supported approach is to delete the VM and recreate it with a network interface attached to the target VNet. Since the proposed solution explicitly performs this process (delete, recreate, and attach new NIC to VNET2), it correctly achieves the required connectivity to the new virtual network.

Learn more

Community Discussion

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