Skip to main content
Answer confirmed
Question

You have an Azure virtual network named Vnet1 that contains a subnet named Subnet1.

You have an Azure virtual machine named VM1 that runs Windows Server. VM1 is connected to Subnet1 by using a network interface named NIC1.

VM1 is accessible by using a private, dynamically assigned Ipv4 address.

You need to change the Ipv4 address to a static assignment.

What should you do?

 

 

Proposed answer

From the Azure portal, configure the settings of NIC1.
This answer is correct.
From the Azure portal, configure the settings of Subnet1.
From the Azure portal, configure the settings of VM1.
From within the operating system of VM1, configure the properties of VM1's Ethernet connection. 

Correct answer

Correct answer is From the Azure portal, configure the settings of NIC1.

To configure a static IPv4 address assignment of an Azure virtual machine, you must modify the settings of the virtual machine's network interface by using the Azure portal. This is impossible to accomplish by configuring the settings of the virtual machine or the subnet to which the network interface is connected. Assigning a static IP address by configuring the properties of the Ethernet connection from within the operating system of the virtual machine will result in a loss of network connectivity.

Configure a private IP address for a virtual machine using the Azure portal - Training | Microsoft Learn