After you create a pay-as-you-go Elastic Compute Service (ECS) instance, you can change its billing method to subscription to reserve resources at a discounted rate.
Prerequisites
The instance does not belong to a retired instance type or is not a preemptible instance.
You do not have unpaid orders for the instance. Otherwise, you must first pay for the orders or cancel them.
No automatic release time is set for the instance. Otherwise, you must first cancel the release settings.
The instance is in the Running or Stopped state.
If you placed an order to change the billing method of an instance in the Running or Stopped state and the instance entered a different state before the payment is complete, the payment and the billing method change fail. You can go to the Order Hub and pay for the order when the instance returns to the Running or Stopped state.
Procedure
Go to ECS console - Instance.
In the top navigation bar, select the region and resource group of the resource that you want to manage.
Find the instance and click its ID to go to the instance details page. In the upper-right corner of the page, click All Actions. In the pane that appears, find and click
.
You can perform a batch operation on the Instance page to change the billing method of up to 20 instances at a time. When you perform a batch operation, you can configure only the same subscription duration for all instances.
On the Switch to Subscription page, change the billing method.
Specify a subscription duration.
Specify whether to change the billing method of the pay-as-you-go data disks attached to the instance to subscription.
Specify whether to enable auto-renewal.
Select ECS Terms of Service.
Click Confirm Order and complete the payment as prompted.
Change impacts
After you change the billing method of a pay-as-you-go instance to subscription, the billing methods of its instance type, system disk, and image software license are changed to subscription. The change has the following impacts:
If the instance had public bandwidth or was associated with an elastic IP address (EIP) before the change, the billing method for network usage or the billing method of the EIP remains unchanged after the change. You may still be charged pay-as-you-go fees. Pay attention to your account balance to prevent service interruptions caused by overdue payments. To change the billing method of your network resources to subscription, use one of the following methods:
If your instance is associated with a static public IP address (also known as auto-assigned or system-assigned public IP address), change the billing method for network usage of the instance to subscription.
If your pay-as-you-go instance is associated with a pay-as-you-go EIP, change the billing method of the EIP to subscription.
If data disks are attached to the pay-as-you-go instance and you did not choose to change their billing method to subscription, their billing method remains unchanged. You can separately change the billing method of the disks when needed.
References
ModifyInstanceChargeType: changes the billing method of an ECS instance from pay-as-you-go to subscription.