Efthymios Kalyviotis
Efthymios Kalyviotis

Reputation: 969

Convert CosmosDB Serverless to Provisioned throughput DB

I am getting ready to create a brand new mobile application that communicates with CosmosDB and I will probably go the serverless way. The serverless way has some little disadvantages compared to the provisioned throughput (eg. only 50GB per container, no Geo-Redundancy, no Multi-region Writes, etc.).

If I need later on to convert my DB to a provisioned throughput one, can I do it somehow?

I know that I can probably use the change-feed and from that (I guess) recreate a new DB from it (provisioned throughput one) but this might open the Pandora's box especially while a mobile app connects to a specific DB.

Upvotes: 5

Views: 5518

Answers (2)

Sajeetharan
Sajeetharan

Reputation: 222582

As Gaurav mentioned, there is no way to change to Provisioned from Serverless plan once you create an account.

You will need to recreate the account with Serverless as type and follow the below ways to migrate the data,

(i) Data Migration Tool - You can easily migrate from one account to another

(ii) ChangeFeed and Restore - push the changes to the new instance

Once you are synced, switch to the new one.

UPDATE:

Is is currently supported in preview, https://learn.microsoft.com/en-gb/azure/cosmos-db/nosql/how-to-change-capacity-mode

Upvotes: 11

Gaurav Mantri
Gaurav Mantri

Reputation: 136206

Based on the documentation available here: https://learn.microsoft.com/en-us/azure/cosmos-db/serverless#using-serverless-resources, it is currently not possible to change a Cosmos DB server less account to provisioned throughput.

Upvotes: 5

Related Questions