DEV Community

Cover image for Azure Virtual Machines - Impact of Lifecycle Stages on Cloud Bill
Yasir Rehman
Yasir Rehman

Posted on • Updated on

Azure Virtual Machines - Impact of Lifecycle Stages on Cloud Bill

Virtual Machines (VMs) are the core building block of many compute services in Azure, but their lifecycle stages can impact your cloud bill. Let's break down the key states and their cost implications:

Azure VMs Status Const Impact

๐‚๐ซ๐ž๐š๐ญ๐ข๐ง๐ : During this phase, the virtual machine is allocating resources on a host but not yet fully operational. It is not billed at this stage.
๐’๐ญ๐š๐ซ๐ญ๐ข๐ง๐ : The VM is powering up and transitioning to a fully operational state. Billing begins when the VM is in this state
๐‘๐ฎ๐ง๐ง๐ข๐ง๐ : This is the standard working state where the virtual machine is fully operational. It incurs charges.
๐’๐ญ๐จ๐ฉ๐ฉ๐ข๐ง๐ : The virtual machine is transitioning between running and stopped. It is billed during this transition.
๐’๐ญ๐จ๐ฉ๐ฉ๐ž๐: In this state, the virtual machine is allocated on a host but not actively running. It can be powered off using the API or from within the guest OS. It is also known as the PoweredOff state. Charges apply when the VM is in this state.
๐’๐ญ๐จ๐ฉ๐ฉ๐ž๐ (๐๐ž๐š๐ฅ๐ฅ๐จ๐œ๐š๐ญ๐ข๐ง๐ ): This state is transitional between running and deallocated. It is not billed.
๐’๐ญ๐จ๐ฉ๐ฉ๐ž๐ (๐๐ž๐š๐ฅ๐ฅ๐จ๐œ๐š๐ญ๐ž๐): The virtual machine has released the lease on the underlying hardware. If it is powered off, it appears as Stopped (deallocated). Charges do not apply in this state, except for certain Azure resources like disks and networking.
๐‡๐ข๐›๐ž๐ซ๐ง๐š๐ญ๐ž๐ (๐๐ž๐š๐ฅ๐ฅ๐จ๐œ๐š๐ญ๐ž๐) [๐๐‘๐„๐•๐ˆ๐„๐–]: It allows pausing VMs that arenโ€™t actively being used, helping you save on compute costs. It is not billed.

Note: The provisioning state refers to the status of a user-initiated, control-plane operation on the VM in Azure. These states are separate from the power state of a VM.

๐๐ซ๐จ ๐“๐ข๐ฉ: Remember, even if the VM itself isn't charged in some states, attached resources like disks and networking might still accrue costs.

Top comments (0)