You plan to migrate two on-premises servers to Azure VMs on the same subnet and the application requires static internal IP addresses. What should you do to assign static private IPs to the two Azure VMs?
Choose an answer
Tap an option to check your answer.
Correct answer: Modify the VM network interface properties in the Azure Management Portal..
Why this is the answer
To assign a static private IP address to an Azure VM, you must modify the network interface properties through the Azure portal, PowerShell, or Azure CLI. This ensures the IP address is reserved and assigned by Azure's DHCP service. Configuring the IP address within the guest OS (e.g., Windows Network and Sharing Center) is incorrect because Azure's network infrastructure manages IP assignments. If you manually set an IP in the guest OS that conflicts with Azure's DHCP, it can lead to connectivity issues. The New-AzureRMVMConfig cmdlet is for creating a new VM configuration, not modifying an existing one's IP. Set-AzureSubnet modifies subnet properties, not individual VM IPs. Set-AzureStaticVNetIP is an outdated cmdlet from Azure Service Management (ASM) and is not used for Azure Resource Manager (ARM) deployments.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed