A virtual machine named VM-Web01 is deployed in an Azure virtual network. The network interface (NIC) of VM-Web01 is currently configured with a private IP address that uses dynamic allocation. You need to ensure that VM-Web01 maintains its current private IP address even if the virtual machine is stopped and deallocated for maintenance. What should you do?
- Change the private IP address allocation method to Static.Cevap
- BCreate a Private DNS Zone and link it to the virtual network containing VM-Web01.
- CAssociate the network interface with a Basic Load Balancer and configure a static frontend IP.
- DCreate a custom route table with a User-Defined Route pointing to a Virtual Network Gateway.
Cevap
Change the private IP address allocation method to Static.
The correct action is to change the private IP address allocation method to Static. In Azure, a dynamic private IP address is released when the virtual machine is stopped (deallocated). By changing the allocation method of the primary IP configuration on the network interface to Static, the current IP address is reserved and will not be released or changed during deallocation.
Adım Adım Çözüm
Anahtar Kavram
Private IP Address Allocation Methods
Tahmini Süre:1m 0s