Updated 2025-07-18

Changing the Shape of an Instance

You can change the shape of a virtual machine (VM) instance without having to rebuild the instance or redeploy your applications. Changing shapes lets you scale up your Compute resources for increased performance or scale down to reduce costs.

Changing the shape of an instance affects the number of OCPUs , amount of memory, network bandwidth, and maximum number of VNICs for the instance. In addition, you can select a shape that uses a different processor. The instance's public and private IP addresses, volume attachments, and VNIC attachments remain the same.

Optionally, you can change a regular instance to a burstable instance, or change a burstable instance to a regular instance. Similarly, you can change a regular instance to an extended memory VM instance, or change an extended memory VM instance to a regular instance.

To determine whether capacity is available for a specific shape before you change the shape of an instance, use the CreateComputeCapacityReport operation.

Supported Shapes

The instance's current shape and image determine available new shape targets. You can resize instances that use these shapes:

  • VM Standard and Optimized shapes: Includes the following shapes:

    • VM.Standard1 series
    • VM.Standard.B1 series
    • VM.Standard2 series
    • VM.Standard3.Flex
    • VM.Standard.E2 series
    • VM.Standard.E3.Flex
    • VM.Standard.E4.Flex
    • VM.Standard.E5.Flex
    • VM.Standard.E6.Flex
    • VM.Optimized3.Flex
    • VM.Standard.A1.Flex
    • VM.Standard.A2.Flex

    For both Linux and Windows images, you can change the number of OCPUs and the amount of memory allocated to a flexible shape. You can also change a standard shape in one series to a standard shape in another series. For example, you can change a fixed shape to a flexible shape.

    Important

    For Windows Server 2019 instances running on shapes in the VM.Standard2 series, you can change the shape to a new shape only within the same series.
  • VM.GPU3 series: You can change to any shape in the VM.GPU3 or VM.GPU.A10 series.
  • VM.GPU.A10 series: You can change to any shape in the VM.GPU.A10 or VM.GPU3 series.

These shapes cannot be edited:

  • VM.Standard.E2.1.Micro
  • VM.DenseIO.E4.Flex
  • VM.DenseIO.E5.Flex
  • VM.GPU2 series

Limitations and Considerations

Be aware of the following information:

  • The image that was used to create the instance must be compatible with the new shape. To see which shapes are compatible, do either of the following things:
    • In the Console, on the Instance Details page, click the name of the image. Then, refer to the list of compatible shapes.
    • Using the API, call the ListShapes operation and pass the image OCID as a parameter.
  • Some Marketplace images cannot be resized because of licensing constraints. If you want to resize a Microsoft SQL Server image, contact support.
  • You must have sufficient service limits for the new shape. If you don't have service limits, the instance retains the original shape.
  • Different shapes are billed at different rates. When you change the shape of an instance, you are billed to the nearest second of usage for each shape that you use. For more information, see Compute Pricing and Resource Billing for Stopped Instances.
  • If the instance has secondary VNICs configured, you might need to reconfigure them after the instance is rebooted. For more information, see VNICs.
  • If the instance is running when you change the shape, it is rebooted as part of the change shape operation. If the applications that run on the instance take a long time to shut down, they could be improperly stopped, resulting in data corruption. To avoid this, shut down the instance using the commands available in the OS before you change the shape.
  • When you resize your VM, some hardware details might change. If the network interface name changes, it can cause issues for some guest OSs. The guest OS is more vulnerable if the OS has been customized. To ensure that you have consistent interface names, configure your guest OS. If the OS fails to boot after you change the shape, change the instance back to the original shape.
  • If you created a regular instance using SR-IOV networking (the default for some regular instances), and want to change the instance to a burstable instance, you must also change the networking type to paravirtualized.

Before You Begin