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?
Assign a static private IP address to the virtual machine
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
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 the difference between a static and dynamic public IP address?
Open an interactive chat with Bash
How do you configure a virtual machine to use a static public IP address in Azure?
Open an interactive chat with Bash
Why wouldn't enabling Azure DNS resolve the issue of a changing 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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .