When an Azure virtual machine is stopped you continue to pay storage cost for the virtual machine?
This page describes the cost of running a Compute Engine VM instance with any of the following machine types, as well as other VM instance-related pricing. To see the pricing for other Google Cloud Platform products, see the GCP pricing list. Show
Compute Engine charges for usage based on the following price sheet. A bill is sent out at the end of each billing cycle, providing a sum of Google Cloud charges. Prices on this page are listed in U.S. dollars (USD). For Compute Engine, disk size, machine type memory, and network usage are calculated in gigabytes (GB), where 1 GB is 230 bytes. This unit of measurement is also known as a gibibyte (GiB). If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. You can also find pricing information with the following options:
Billing modelThe following billing model applies to all vCPUs, GPUs, and memory resources. The billing model also applies to several premium images that you run on Compute Engine instances.
Instance uptimeInstance uptime is measured as the number of seconds between when you start an instance and when you stop an instance, the latter being when the instance state is In the case of reservations, instance uptime is measured as the number of seconds between when you create a reservation and when you delete that reservation. Reserved resources are billed at standard rates, whether they are started or not. Note that Compute Engine bills for a minimum of 1 minute of usage, so if you use an instance for 30 seconds of uptime, you are billed for 1 minute. After 1 minute, your instance is billed on a per-second basis. For more information, see the billing model. Resource-based pricingEach vCPU and each GB of memory on Compute Engine is billed separately rather than as part of a single machine type. You still create instances using predefined machine types, but your bill reports them as individual vCPUs and memory used per hour. If you change the number of threads per core, you are billed for the number of vCPUs defined by a VM's machine type, not the number of threads used by the VM. The pricing tables in the machine family and machine type sections on this page describe prices for machine types based on vCPU and memory resources, but also include the calculated cost for each machine type. You can also use the Google Cloud Pricing Calculator to better understand prices for different configurations. DiscountsvCPU and memory usage for each machine type use the on-demand price unless that usage qualifies for a discount. vCPU and memory usage for each machine type can receive one of the following discounts:
Discount types cannot be combined. Spot prices apply to all Spot VMs (and preemptible VMs), so Spot VMs (and preemptible VMs) cannot receive sustained use discounts or committed use discounts. Committed use discountsCommitted use discounts are the discounts that you receive when you purchase resources using a committed use contract (also known as a commitment). Compute Engine allows you to purchase resources at heavily discounted prices when you commit to them over a period of time. Commitments are appropriate for predictable and steady state usage. You can purchase 1-year or 3-year commitments for your resources. Compute Engine offers a flat committed use discount percentage on its VMs across all regions. When you purchase vCPUs and/or memory on a 1-year commitment, you get the resources at a discount of 37% over the on-demand prices. When you purchase your resources on a 3-year commitment, the discount increases to 70% over the on-demand prices for memory-optimized machine types and to 57% over the on-demand prices for all other machine types. You commit to the resources for the entire usage term and are billed for them each month, even if you don't consume the committed resources. Committed use discounts are available for the following machine types in each machine family:
For a more detailed breakdown, see Commitment types. Combining commitments with reservationsA commitment provides a 1- or 3-year discounted price agreement, but it does not reserve capacity in a specific zone. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. By attaching reservations to a commitment, you can get discounted, reserved resources See Combining reservations with Committed use discounts for more information. To learn more about purchasing commitments, see Purchasing commitments for machine types and Purchasing commitments with attached reservations The pricing tables in the machine family and machine type sections on this page compare the on-demand prices with the discounted prices for Spot VMs (and preemptible VMs), 1-year commitments, and 3-year commitments for machine types in each machine family. Sustained use discountsCompute Engine offers automatic discounts for sustained use of vCPUs and memory that are not receiving any other discounts. Whenever you use an applicable vCPU or an applicable GB of memory for more than 25% of a month, Compute Engine automatically gives you a sustained use discount for every incremental hour that you continue to use that resource. The discount increases with usage and you can get up to a 30% net discount off of the vCPU and memory cost for instances that run the entire month. Sustained use discounts are applied automatically and will be calculated and added to your bill as your resources earn them. There is no action needed on your part to enable sustained use discounts. To learn more about sustained use discounts, see the Sustained Use Discounts documentation. Viewing usageThe Google Cloud console provides a transaction history for each of your projects. This history describes your current balance and estimated resource usage for that particular project. To view a project's transaction history, go to the estimated billing invoice page. General-purpose machine type familyGeneral-purpose machine-types offer predefined and custom machine types in each region. Predefined machine types have a preset number of vCPUs and amount of memory, but are billed using the resource-based pricing model. Custom machine types are billed according to the resource-based pricing. For N1, N2, and C2 machine types, Compute Engine provides automatic sustained use discounts for all of the predefined vCPU and memory resources that you use in a region. Sustained use discounts for predefined machine types are calculated separately from custom, memory-optimized, compute-optimized, and shared-core machine types. Depending on the machine type, sustained use discounts differ between N1 and N2 machine types:
E2 machine types do not offer sustained use discounts but provide larger savings directly through the on-demand and committed-use prices. E2 machine types provide consistently predictable pricing without the requirement to run a VM for a specific portion of the month. For more information, see Sustained use discounts. Not all machine types are guaranteed to be available in all zones all the time. To ensure that a machine type is available when you need it, you can preemptively reserve the machine type in a certain zone. For information about reserving predefined machine types in a specific zone, see Reserving zonal resources. E2 machine typesE2 machine types do not offer sustained use discounts but provide larger savings directly through the on-demand and committed-use prices. E2 machine types provide consistently predictable pricing without the requirement to run a VM for a specific portion of the month. If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. E2 standard machine typesThe following table shows the calculated cost for standard predefined machine types in the E2 machine family. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. Standard machine types have 4 GB of memory per vCPU. If you pay in a currency other than USD, the prices listed in your currency on
Cloud Platform SKUs apply. E2 high-memory machine typesThe following table shows the calculated cost for the E2 high-memory predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. High-memory machine types have 8 GB of memory per vCPU. High-memory instances are ideal for tasks that require more memory relative to virtual CPUs. If you pay in a currency other than USD, the prices listed in your currency on
Cloud Platform SKUs apply. E2 high-CPU machine typesThe following table shows the calculated cost for E2 high-CPU predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. High-CPU machine types have one vCPU for every 1 GB of memory. High-CPU machine types are ideal for tasks that require moderate memory configurations for the needed vCPU count. If you pay in a currency other than USD, the prices
listed in your currency on Cloud Platform SKUs apply. E2 custom vCPUs and memoryCustom machine types let you set a specific number of vCPUs and GB of memory for your instances to match the needs of your workload. Custom machine types save you the cost of running on a larger and more expensive machine type if your application does not require all of the resources provided by that machine type. E2 shared-core custom machine types are subject to the same pricing rate as E2 custom machines. These instances have fractional vCPUs with a custom memory range.
Read Creating a VM instance with a custom machine type to learn how to use these machine types. Not all machine types are guaranteed to be available in all zones all the time. To ensure that a machine type is available when you need it, you can preemptively reserve the machine type in a certain zone. For information about reserving predefined machine types in a specific zone, see Reserving zonal resources. For an accurate estimate of your billing with custom machine types, use the Google Cloud Platform Pricing Calculator. If you pay in a currency other than USD, the prices listed in your currency on
Cloud Platform SKUs apply. N2 machine types If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. N2 standard machine typesThe following table shows the calculated costs for standard predefined machine types in the N2 machine family. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. Standard machine types have 4 GB of memory per vCPU. If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. N2 high-memory machine typesThe following table shows the calculated cost for the N2 high-memory predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. High-memory machine types have 8 GB of memory per vCPU. High-memory instances are ideal for tasks that require more memory relative to virtual CPUs. If you pay in a currency other than USD, the prices listed in
your currency on Cloud Platform SKUs apply. N2 high-CPU machine typesThe following table shows the calculated cost for N2 high-CPU predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. High-CPU machine types have one vCPU for every 1 GB of memory. High-CPU machine types are ideal for tasks that require moderate memory configurations for the needed vCPU count. If you pay in a currency other than USD, the prices
listed in your currency on Cloud Platform SKUs apply. N2 custom vCPUs and memoryCustom machine types let you set a specific number of vCPUs and GB of memory for your instances to match the needs of your workload. Custom machine types save you the cost of running on a larger and more expensive machine type if your application does not require all of the resources provided by that machine type. Read Creating a VM instance with a custom machine type to learn how to use these machine types. Sustained use discounts for custom machine types are calculated separately from predefined machine types, memory-optimized types, and shared-core machine types. Not all machine types are guaranteed to be available in all zones all the time. To ensure that a machine type is available when you need it, you can preemptively reserve the machine type in a certain zone. For information about reserving predefined machine types in a specific zone, see Reserving zonal resources. For an accurate estimate of your billing with custom machine types, use the Google Cloud Platform Pricing Calculator. If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. N2 extended custom memoryFor custom machine types, any memory up to and including 8 GB of memory per vCPU is charged at the standard custom vCPU and memory pricing rate. Any memory above 8 GB per vCPU is charged according to the following extended memory prices. To learn how to create instances with custom machine types and extended memory, see Adding extended memory to a machine type. If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. N2D machine types If you pay in a currency other than USD, the prices listed in your currency on
Cloud Platform SKUs apply. N2D standard machine typesThe following table shows the calculated costs for standard predefined machine types in the N2D machine family. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. Standard machine types have 4 GB of memory per vCPU. If you pay in a currency other than USD, the prices listed in your currency on Cloud
Platform SKUs apply. N2D high-memory machine typesThe following table shows the calculated cost for the N2D high-memory predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. High-memory machine types have 8 GB of memory per vCPU. High-memory instances are ideal for tasks that require more memory relative to virtual CPUs. If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. N2D high-CPU machine typesThe following table shows the calculated cost for the N2D high-cpu predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. High-cpu machine types have 1 GB of memory per vCPU. High-cpu instances are ideal for tasks that require more virtual CPUs relative to memory. If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. N2D custom vCPUs and memoryCustom machine types let you set a specific number of vCPUs and GB of memory for your instances to match the needs of your workload. Custom machine types save you the cost of running on a larger and more expensive machine type if your application does not require all of the resources provided by that machine type. Read Creating a VM instance with a custom machine type to learn how to use these machine types. Sustained use discounts for custom machine types are calculated separately from predefined machine types, memory-optimized types, and shared-core machine types. Not all machine types are guaranteed to be available in all zones all the time. To ensure that a machine type is available when you need it, you can preemptively reserve the machine type in a certain zone. For information about reserving predefined machine types in a specific zone, see Reserving zonal resources. For an accurate estimate of your billing with custom machine types, use the Google Cloud Platform Pricing Calculator. N2D extended custom memoryFor custom machine types, any memory up to and including 8 GB of memory per vCPU is charged at the standard custom vCPU and memory pricing rate. Any memory above 8 GB per vCPU is charged according to the following extended memory prices. To learn how to create instances with custom machine types and extended memory, see Adding extended memory to a machine type. Tau T2D machine typesTau T2D standard machine typesThe following table shows the calculated costs for standard predefined machine types in the Tau T2D machine family. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. Standard machine types have 4 GB of memory per vCPU. Tau T2A machine typesTau T2A standard machine typesThe following table shows the calculated costs for standard predefined machine types in the Tau T2A machine family. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. Standard machine types have 4 GB of memory per vCPU. N1 machine typesN1 standard machine typesThe following table shows the calculated cost for standard predefined machine types in the N1 machine family. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. Standard machine types have 3.75 GB of memory per vCPU. N1 high-memory machine typesThe following table shows the calculated cost for the N1 high-memory predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. High-memory machine types have 6.5 GB of memory per vCPU. High-memory instances are ideal for tasks that require more memory relative to virtual CPUs. N1 high-CPU machine typesThe following table shows the calculated cost for N1 high-CPU predefined machine types. The vCPUs and memory from each of these machine types are billed by their individual predefined vCPU and memory prices, but these tables provide the cost that you can expect using a specific machine type. High-CPU machine types have one vCPU for every 0.90 GB of memory. High-CPU machine types are ideal for tasks that require moderate memory configurations for the needed vCPU count. N1 custom vCPUs and memoryCustom machine types let you set a specific number of vCPUs and GB of memory for your instances to match the needs of your workload. Custom machine types save you the cost of running on a larger and more expensive machine type if your application does not require all of the resources provided by that machine type. For example, instead of using an Read the Creating instances with custom machine types to learn how to use these machine types. Sustained use discounts for custom machine types are calculated separately from predefined machine types, memory-optimized types, and shared-core machine types. Not all machine types are guaranteed to be available in all zones all the time. To ensure that a machine type is available when you need it, you can preemptively reserve the machine type in a certain zone. For information about reserving predefined machine types in a specific zone, see Reserving zonal resources. For an accurate estimate of your billing with custom machine types, use the Google Cloud Platform Pricing Calculator. N1 extended custom memoryFor custom machine types, any memory up to and including 6.5 GB of memory per vCPU is charged at the standard custom vCPU and memory pricing rate. Any memory above the 6.5 GB per vCPU is charged according to the extended memory prices that are described in detail below. See the Extended Memory page to learn how to create instances with custom machine types and extended memory. Compute-optimized machine type familyCompute-optimized machine types are ideal for compute-intensive workloads. These machine types offer the highest performance per core on Google Compute Engine. C2 machine typesC2 machine types offer Intel Scalable Processors (Cascade Lake) and up to 3.8Ghz sustained all-core-turbo. Currently, C2 machine types are only available in certain regions and zones. The following table describes the pricing per vCPU and GB of memory for C2 machine types. C2 standard machine typesThe following table shows the calculated cost for C2D vCPUs and memory If you pay in a currency other than USD, the prices listed in your currency on
Cloud Platform SKUs apply. C2D Standard machine types If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.
C2D Highmem machine types If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. C2D Highcpu machine types If you pay in a currency other than USD, the prices listed in your currency on
Cloud Platform SKUs apply. Memory-optimized machine type familyMemory-optimized machine types are ideal for tasks that require intensive use of memory with higher memory to vCPU ratios than the general-purpose Sustained use discounts for memory-optimized machine types are calculated separately from general-purpose machine types, custom machine types, and shared-core machine types. Not all machine types are guaranteed to be available in all zones all the time. To ensure that a machine type is available when you need it, you can preemptively reserve the machine type in a certain zone. For information about reserving predefined machine types in a specific zone, see Reserving zonal resources. M2 machine typesIf the machine types above don't match your workloads, you can choose from the following list of machine types that have larger amounts of memory per vCPU. To use these machine types, you must request quota using one of the following options:
These machine types are only available in select zones. *Spot prices are dynamic and can change up to once every 30 days, but always provide discounts of 60-91% off of the corresponding on-demand price for machine types and GPUs. Spot prices also provide smaller discounts for local SSDs. For more information, see the Spot VMs documentation. M1 machine types
If you pay in a currency other than USD, the
prices listed in your currency on Cloud Platform SKUs apply. The following table shows the calculated cost for These machine types are only available in select zones. Committed Use Discounts apply to memory-optimized machine types only if you buy the commitment type specifically for memory-optimized machine types. Accelerator-optimized machine type familyAccelerator-optimized (A2) VMs are optimized for massively parallelized CUDA compute workloads, such as machine learning (ML) and high performance computing (HPC). A2 VMs are preconfigured with a set number of NVIDIA A100 GPUs. The A2 machine types are billed for their attached A100 GPUs, predefined vCPU, and memory.
A2 machine types (base vCPU and memory prices only)The following table shows only the base vCPUs and memory prices for A2 VMs. If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. *Spot prices are dynamic and can change up to once every 30 days, but always provide discounts of 60-91% off of the corresponding on-demand price for machine types and GPUs. Spot prices also provide smaller discounts for local SSDs. For more information, see the Spot VMs documentation. A2 standard machine types (total cost)The following table shows the total calculated cost that you can expect for these predefined A2 machine types. This total cost includes the cost for the GPUs, vCPU, and memory. If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. *Spot prices are dynamic and can change up to once every 30 days, but always provide discounts of 60-91% off of the corresponding on-demand price for machine types and GPUs. Spot prices also provide smaller discounts for local SSDs. For more information, see the Spot VMs documentation. A2 ultra machine types (total cost)The following table shows the total calculated cost that you can expect for these predefined A2 ultra machine types. This total cost includes the cost for the GPUs, vCPU, memory, and local SSD. **For committed use discounts pricing on the A2 ultra machine series, connect with your sales account team. Unlike predefined machine types and custom machine types, shared-core machine types are not billed on their individual resources. Each machine type has a defined price for both vCPUs and memory. E2 shared-core machines with committed use discount contracts consume cores in the following manner:
Learn more about E2 shared core machine types. Compute Engine offers shared-core machine types, which are more cost-effective for running smaller applications that don't require as many resources as provided by the other machine types. E2 shared-core machine types don't offer a sustained-use discount. Compute Engine offers shared-core machine types, which are more cost-effective for running smaller applications that don't require as many resources as provided by the other machine types. Unlike predefined machine types, custom machine types, and memory-optimized machine types, shared-core machine types are not billed on their individual resources. Each machine type has a defined price for both vCPUs and memory. Sustained use discounts for shared-core machine types are calculated separately from predefined machine types, custom machine types, and memory-optimized machine types. CPU burstingShared-core machine types offer bursting capabilities that allow instances to use additional physical CPU for short periods of time. Bursting happens automatically when your VM requires more physical CPU than originally allocated. During these spikes, your VM will opportunistically take advantage of available physical CPU in bursts. Note that bursts are not permanent and are only possible periodically.
The exact burst time is determined by a Token
bucket meaning utilizing the CPU less than 100% will result in longer bursts. Bursting doesn't incur any additional charges. You are charged the listed on-demand price for If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. N2, N2D, C2 and C2D higher bandwidth configurationYou can configure your N2, N2D, C2, and C2D machine types to use TIER_1 higher bandwidth. This option is only available to N2, N2D, C2, and C2D machine types with greater than 30 vCPUs, and is dependent upon machine type availability in regions and zones. N2, N2D, C2 If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. C2D If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply. Simulated maintenance event pricingStarting February 10, 2020, there is no cost to running simulated maintenance events. Prior to this date, the following charges apply:
Suspended VM instancesWhen you suspend an instance, Compute Engine preserves the memory and device state. While you are not charged for the VM instance as if it were running, suspended instances still incur charges for the following:
What's next
Do Azure charge you pay for stopped VMs?While an Azure VM is in the “Stopped (Deallocated)” state, you will not be charged for the VM compute resources. However, you will still need to pay for any OS and data storage disks attached to the VM.
When you stop a virtual machine in Azure you will continue paying for?The shutdown automation provided natively by Azure puts the machine in the Deallocated state, so it is not being billed while it is shut down.
What happens when an Azure virtual machine is in a stopped state?When you stop a VM through Azure, rather than through the OS, it goes into a “Stopped (deallocated)” state. This means that any non-static public IPs will be released, but you'll also stop paying for the VM's compute costs.
How are Azure services such as virtual machines charged for?Microsoft charges for Azure on a pay-as-you-go (PAYG) basis, meaning subscribers receive a bill each month that only charges them for the specific resources and services they have used.
|