AZ-104 Practice Question 85: VM Stopped Versus Deallocated
Microsoft Azure Administrator Associate (AZ-104) · Test 9 · question 5 of 10
To cut costs, an administrator shuts down a virtual machine from inside its guest operating system. At the end of the month the compute charge for the virtual machine has not changed.
What is the reason?
Show answer and explanation
Answer:
Shutting down from within the operating system leaves the virtual machine in the Stopped state, and Azure keeps the compute resources allocated, so it is billed. Stopping it from the portal, the CLI or PowerShell deallocates it, which ends the compute charge; storage for the disks is still billed.
Option A is wrong because a public IP address is billed on its own and does not keep compute running.
Option C is wrong because there is no approval step for charges.
Option D is wrong because disks are billed separately, and detaching them does not affect compute billing.
Reference: States and billing status of Azure Virtual Machines