You can change the billing method of an ApsaraDB for MongoDB instance from pay-as-you-go to subscription.
Prerequisites
The instance uses the pay-as-you-go billing method and is in the Running state.
The instance is of an available instance type. For more information about unavailable instance types, see Historical instance types.
NoteIf you need to change the billing method of an instance that is of a phased-out instance type from pay-as-you-go to subscription, change the instance type first. For more information, see Overview.
The instance runs MongoDB 4.0 or later.
NoteIf you need to change the billing method of an instance that runs MongoDB 4.0 or earlier from pay-as-you-go to subscription, upgrade the database engine version of the instance first. For more information, see Upgrade the major version of an ApsaraDB for MongoDB instance and Update the minor version of an ApsaraDB for MongoDB instance.
The instance has no unpaid subscription orders.
NoteIf you change the billing method of an instance from pay-as-you-go to subscription, the system generates a subscription order. You cannot purchase a new instance or change the billing method of an instance to subscription until you pay for this order. You can log on to the Billing Management console and choose Expenses > Orders to pay for the order or cancel it.
Your account balance is sufficient.
Procedure
Log on to the ApsaraDB for MongoDB console.
In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances.
In the upper-left corner of the page, select the resource group and region to which the desired instance belongs.
Click More in the Actions column corresponding to the instance and then select Switch to Subscription.
On the Switch to Subscription page, configure the Duration parameter for the instance.
Read and select the MongoDB (Subscription) Terms of Service and click Buy Now.
On the Purchase page, complete the payment.