Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to change cosmosdb container throughput from Manual to Autoscale using CosmosDB V3 SDK

I am trying to replace the throughput of a manual container to autoscale using this code

container.ReplaceThroughputAsync(ThroughputProperties.CreateAutoscaleThroughput(4000));

This throws an exception. Errors":["x-ms-cosmos-migrate-offer-to-autopilot must be supplied and offercontent must not contain autopilotSettings for migration from manual throughput to autoscale."

Not able to find anything related to this on CosmosDB Documentation. I am currently using CosmosDB 3.12 V3 .Net SDK.

like image 488
Hamdan Sultan Avatar asked Oct 28 '25 10:10

Hamdan Sultan


1 Answers

Change throughput from manual to autoscale by sdk is not supported now.Method ReplaceThroughputAsync only can change the throughput.You should change this on Azure portal.

like image 172
Steve Zhao Avatar answered Oct 30 '25 03:10

Steve Zhao



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!