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 7 months, 1 week 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 28 times
...
Quantigo
Highly Voted 3 years, 7 months ago
Correct Answer E: Run the Set-AzureStaticVNetIP PowerShell cmdlet.
upvoted 21 times
...
saadraaz
Most Recent 1 week, 1 day 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 weeks, 1 day ago
Selected Answer: C
Set-AzureStaticVNetIP (Classic VMs only – Deprecated)
upvoted 1 times
...
GohanF2
1 month 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
2 months, 2 weeks 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
2 months, 2 weeks ago
Selected Answer: C
Take help from copilot or chatgpt
upvoted 1 times
...
Bikth
2 months, 4 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
3 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
3 months, 1 week 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
3 months, 1 week 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
3 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
3 months, 3 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
...
58b2872
4 months ago
Selected Answer: E
Option C modifies general VM properties but cannot manage the static IP configuration for the NIC. Option E is designed specifically for static IP assignment, which is exactly addresses the NIC level.
upvoted 2 times
...
58b2872
4 months ago
Selected Answer: E
The Set-AzureStaticVNetIP cmdlet is specifically used to assign a static internal IP address to an Azure VM in a virtual network. Modifying VM properties in the Azure Management Portal (Option C) does not allow you to directly set a static internal IP address. Static IP addresses for Azure VMs must be configured at the network interface level, and this is best done via PowerShell.
upvoted 1 times
...
bhaskarraobaipothu
4 months, 1 week ago
Selected Answer: E
C. partially correct but not the best answer for the given context. E.E. Run the Set-AzureStaticVNetIP PowerShell cmdlet. It allows you to assign a static IP address to a VM within an Azure Virtual Network
upvoted 1 times
...
_fvt
4 months, 1 week ago
Selected Answer: E
Set-AzureStaticVNetIP
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago