Microsoft Azure Administrator Associate AZ-104 Practice Question
You have an Azure virtual machine that hosts a critical web application. After you stop (deallocate) the virtual machine from the Azure portal and then start it again, 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 deallocation/start cycles?
Add the virtual machine to an availability set
Enable Azure DNS for the virtual machine
Configure the virtual machine's network interface to use a static public IP address
Assign a static private IP address to the virtual machine
By default, Azure assigns dynamic public IP addresses to network interfaces. A dynamic address can change when the associated resource-such as a virtual machine-is started after being in the stopped (deallocated) state. To make the address persistent across deallocation and start operations, change the IP assignment method to Static on the VM's network interface or create a new Static public IP resource and associate it. Static public IP addresses are reserved for your subscription until you delete the IP resource, so the address remains constant and clients can always reach the application. Setting a static private IP, adding the VM to an availability set, or enabling Azure DNS do not prevent the public address from changing.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a static public IP address in Azure?
Open an interactive chat with Bash
How do I configure a static public IP address for my Azure virtual machine?
Open an interactive chat with Bash
What happens if I use a dynamic public IP address?
Open an interactive chat with Bash
Microsoft Azure Administrator Associate AZ-104
Configure and manage virtual networking
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access