thomaslevesque / CosmosDBStudio

A tool to browse and query Azure Cosmos DB databases
MIT License
54 stars 12 forks source link

Add support for Serverless accounts #25

Closed thomaslevesque closed 3 years ago

thomaslevesque commented 3 years ago

Some features (e.g. create/edit container or database) seem to be broken when connecting to a Cosmos account in Serverless mode. Need to investigate.

thomaslevesque commented 3 years ago

OK, this is because attempting to retrieve the throughput for a database or container in a serverless account returns a 400 response. Since the Cosmos SDK doesn't seem to have a way to detect if an account is serverless, I'll add a setting in the account properties, to be configured manually.