nerdexam
Microsoft

AZ-104 · Question #486

Your company has two on-premises servers named SRV01 and SRV02. Developers have created an application that runs on SRV01. The application calls a service on SRV02 by IP address. You plan to migrate…

The correct answer is E. Run the Set-AzureStaticVNetIP PowerShell cmdlet. Specify a static internal IP for a previously created VM If you want to set a static IP address for a VM that you previously created, you can do so by using the following cmdlets. If you already set an IP address for the VM and you want to change it to a different IP address…

Submitted by layla.eg· Mar 4, 2026Configure and manage virtual networking

Question

Your company has two on-premises servers named SRV01 and SRV02. Developers have created an application that runs on SRV01. The application calls a service on SRV02 by IP address. You plan to migrate the application on Azure virtual machines (VMs). You have configured two VMs on a single subnet in an Azure virtual network. You need to configure the two VMs with static internal IP addresses. What should you do?

Options

  • ARun the New-AzureRMVMConfig PowerShell cmdlet.
  • BRun the Set-AzureSubnet PowerShell cmdlet.
  • CModify the VM properties in the Azure Management Portal.
  • DModify the IP properties in Windows Network and Sharing Center.
  • ERun the Set-AzureStaticVNetIP PowerShell cmdlet.

How the community answered

(27 responses)
  • B
    7% (2)
  • C
    15% (4)
  • D
    4% (1)
  • E
    74% (20)

Explanation

Specify a static internal IP for a previously created VM If you want to set a static IP address for a VM that you previously created, you can do so by using the following cmdlets. If you already set an IP address for the VM and you want to change it to a different IP address, you'll need to remove the existing static IP address before running these cmdlets. See the instructions below to remove a static IP. For this procedure, you'll use the Update-AzureVM cmdlet. The Update-AzureVM cmdlet restarts the VM as part of the update process. The DIP that you specify will be assigned after the VM restarts. In this example, we set the IP address for VM2, which is located in cloud service Get-AzureVM -ServiceName StaticDemo -Name VM2 | Set-AzureStaticVNetIP -IPAddress 192.168.4.7 | Update-AzureVM

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice