Microsoft Azure Administrator Associate AZ-104 Practice Question
You have an Azure virtual machine that hosts a critical web application. After restarting the virtual machine, you notice that its public internet address has changed, causing client connectivity issues. What should you do to ensure the virtual machine retains the same public internet address after future restarts?
Assign a static private IP address to the virtual machine
Configure the virtual machine's network interface to use a static public IP address
Add the virtual machine to an availability set
Enable Azure DNS for the virtual machine