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:
๐๐ซ๐๐๐ญ๐ข๐ง๐ : 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)