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 4 months, 3 weeks 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 25 times
...
Quantigo
Highly Voted 3 years, 4 months ago
Correct Answer E: Run the Set-AzureStaticVNetIP PowerShell cmdlet.
upvoted 21 times
...
Nathan12345
Most Recent 3 days, 1 hour ago
Selected Answer: C
Take help from copilot or chatgpt
upvoted 1 times
...
Bikth
2 weeks, 2 days 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 weeks, 2 days 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 weeks, 3 days 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 weeks, 4 days 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
1 month 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
1 month, 1 week 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
1 month, 2 weeks 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
1 month, 2 weeks 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
1 month, 3 weeks 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
1 month, 4 weeks ago
Selected Answer: E
Set-AzureStaticVNetIP
upvoted 1 times
...
Anonymouse1312
2 months, 2 weeks ago
Selected Answer: C
old question, nnow its C or Set-AzNetworkInterface
upvoted 7 times
...
7bc6163
2 months, 3 weeks ago
Selected Answer: C
To configure static internal IP addresses for Azure VMs in the Resource Manager model, modify the NIC properties in the Azure Portal. This ensures the IP address is managed correctly by Azure and avoids conflicts.
upvoted 5 times
...
MackD
3 months ago
Correct answer is currently not applicable anymore. It should be Set-AzNetworkInterface See: https://learn.microsoft.com/en-us/powershell/module/az.network/set-aznetworkinterface?view=azps-12.4.0
upvoted 3 times
...
RVivek
3 months, 2 weeks ago
Selected Answer: C
Set-AzureStaticVNetIP The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement. https://learn.microsoft.com/th-th/powershell/module/servicemanagement/azure/set-azurestaticvnetip?view=azuresmps-4.0.0
upvoted 4 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