How we can programmatically or script to increase or decrease autoscale request unit in cosmos db

Abdulla Mahammad Khan Dawood 186 Reputation points
2021-03-24T14:41:26.397+00:00

Hi All,

Good Day.

We have requirement where we want implement Cosmos request unit for auto scale to max 4000 RU's during non peak usage and would like increase to max 10000 RU limit during our peak usage so that we can save Azure pricing when there is no usage.

Can someone please help me in programmatically or through script to increase or decrease auto scale Cosmos db ru's as per time we specify.

Thank you in anticipation!!

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,905 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mark Brown - MSFT 2,771 Reputation points Microsoft Employee
    2021-03-24T15:26:15.007+00:00

    Autoscale throughput can be modified using any of the data SDKs as well as PowerShell, Azure CLI or ARM templates and is documented here.

    https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-provision-autoscale-throughput?tabs=api-async

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.