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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With