exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 1 question 31 discussion

Actual exam question from Microsoft's AZ-104
Question #: 31
Topic #: 1
[All AZ-104 Questions]

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?

  • A. Run the New-AzureRMVMConfig PowerShell cmdlet.
  • B. Run the Set-AzureSubnet PowerShell cmdlet.
  • C. Modify the VM properties in the Azure Management Portal.
  • D. Modify the IP properties in Windows Network and Sharing Center.
  • E. Run the Set-AzureStaticVNetIP PowerShell cmdlet.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
blackmetalx
Highly Voted 9 months ago
Set-AzureStaticVNetIP is for Classic VMs and will be retired on September 1, 2023. For new VM it can be don in the portal or using Powershell: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/reset-network-interface #Add/Change static IP. This process will change MAC address $vnet = Get-AzVirtualNetwork -Name $VNET -ResourceGroupName $ResourceGroup $subnet = Get-AzVirtualNetworkSubnetConfig -Name $subnet -VirtualNetwork $vnet $nic = Get-AzNetworkInterface -Name $NetInter -ResourceGroupName $ResourceGroup #Remove the PublicIpAddress parameter if the VM does not have a public IP. $nic | Set-AzNetworkInterfaceIpConfig -Name ipconfig1 -PrivateIpAddress $PrivateIP -Subnet $subnet -PublicIpAddress $publicIP -Primary $nic | Set-AzNetworkInterface
upvoted 29 times
...
Quantigo
Highly Voted 3 years, 8 months ago
Correct Answer E: Run the Set-AzureStaticVNetIP PowerShell cmdlet.
upvoted 21 times
...
Alcpt
Most Recent 1 week ago
Selected Answer: E
The answer is E. You cannot set vm ip addy via Azure portal > VM > properties blade It would have to be Azure portal > VM > network settings blade
upvoted 1 times
...
khamrumunnu
1 month ago
Selected Answer: E
E. Set-AzureStaticVNetIP is correct answer Why other options are incorrect: A. New-AzureRMVMConfig Used to configure VM parameters, not networking/IP settings. B. Set-AzureSubnet Not a valid cmdlet for configuring VM IPs. C. Modify the VM properties in the Azure Portal While partially true, you don’t assign static IPs directly in VM properties, but in the network interface settings, so this isn’t the most accurate answer in the context of the options. D. Modify the IP properties in Windows Network and Sharing Center Azure assigns dynamic IPs unless you reserve them at the NIC level — setting IPs manually inside the OS causes conflicts and is unsupported. This cmdlet is used to assign a static private IP to an Azure VM's network interface (for the old Azure Service Manager model).
upvoted 1 times
...
ITCORESExam
1 month, 1 week ago
Selected Answer: E
E is Correct Answer
upvoted 1 times
...
rah_rule100
1 month, 2 weeks ago
Selected Answer: E
E is the correct answer
upvoted 1 times
...
saadraaz
2 months ago
Selected Answer: C
Set-AzureStaticVNetIP is from the Azure Service Management (ASM or "Classic") model, and it has been deprecated in favor of the Azure Resource Manager (ARM) model — which is what most deployments use today.
upvoted 1 times
...
Ekramy_Elnaggar
2 months, 1 week ago
Selected Answer: C
Set-AzureStaticVNetIP (Classic VMs only – Deprecated)
upvoted 1 times
...
GohanF2
2 months, 4 weeks ago
Selected Answer: C
I will vote for C as well. We the command for Option E is already deprecated. I dont think so that they will be evaluating on old content. https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-networks-static-private-ip?tabs=azureportal
upvoted 1 times
...
HartMS
4 months, 1 week ago
Selected Answer: C
In VM settings, we need to go to Networking to make the required changes. C is the correct answer. Set-AzureStaticVnetIP is not a valid option, as that cmdlet was part of the classic model, which is now deprecated. The correct cmdlet is Set-AzNetworkInterface.
upvoted 2 times
...
Nathan12345
4 months, 1 week ago
Selected Answer: C
Take help from copilot or chatgpt
upvoted 1 times
...
Bikth
4 months, 3 weeks ago
Selected Answer: E
To configure Azure virtual machines (VMs) with static internal IP addresses, the best approach is to use the Set-AzureStaticVNetIP PowerShell cmdlet. This allows you to assign a static private IP address to the VM within the Azure virtual network (VNet).
upvoted 1 times
...
0dc4dd8
5 months ago
Selected Answer: C
To configure static internal IP addresses for Azure VMs, you need to set the IP address configuration directly in the Azure portal or using Azure PowerShell/CLI.
upvoted 1 times
...
superrvirgo
5 months ago
Selected Answer: C
There is no Set-AzureStaticVNetIP anymore. But if there was, I would say that the correct answer should be C & E
upvoted 2 times
...
mpaen10928
5 months ago
Selected Answer: C
C is the closest answer, but the change is done within Settings, not Properties. https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-networks-static-private-ip?tabs=azureportal In the following steps, you change the private IP address static for the VM created previously: In the portal, search for and select Virtual machines. In Virtual machines, select myVM from the list. On the myVM page, under Settings, select Networking.
upvoted 1 times
...
lockmas101
5 months, 1 week ago
Selected Answer: E
Answer is E. You cannot edit the properties in the VM Overview --> Properties. The command might be old but this is probably an old question
upvoted 3 times
...
TodRose
5 months, 2 weeks ago
Selected Answer: E
E. Run the Set-AzureStaticVNetIP PowerShell cmdlet. --- Explanation: To configure a static internal IP address for Azure VMs in the same virtual network, you need to use the Set-AzureStaticVNetIP PowerShell cmdlet. This cmdlet allows you to assign a specific private IP address to a virtual machine's network interface within a subnet.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...