question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to check if a Cosmos DB account is a serverless account?

See original GitHub issue

There doesn’t seem to be any way to check if an account is serverless. ReadAccountAsync returns some properties, but nothing that lets me check the type of account.

Calling ReadThroughputAsync on a database or container on a serverless account returns a 400 response, so I guess I could use that; but if there isn’t a database yet, I can’t even do that.

Is there a way with the SDK to check if an account is serverless? Even the REST API documentation doesn’t say anything about that…

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ThomasWeisscommented, Jun 19, 2023

I’m not working on Cosmos DB anymore, adding @deborahc who might know the answer.

0reactions
thomaslevesquecommented, Jun 23, 2023

@MrFixiter I needed to do this from the .NET SDK, and I can’t use the resource provider API (I only have the connection string for the account, not Azure credentials)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Cosmos DB serverless account type
Azure Cosmos DB serverless is a new account type in Azure Cosmos DB. When you create an Azure Cosmos DB account, you choose...
Read more >
Getting started with Azure Cosmos DB Serverless
Once the account is created, click on the Go to Resource button to navigate to the dashboard page as shown below. Here you...
Read more >
Exploring Azure Cosmos DB Serverless! | by Will Velida
Creating a Serverless Cosmos DB account is only possible via the Azure Portal at this time. We can only provision Serverless accounts for...
Read more >
How to configure failover for a cosmosdb serverless account?
The answer is NO, have you looked at the serverless documentation. A serverless account can only run in a single Azure region.
Read more >
Azure Cosmos DB Serverless Unleashed - YouTube
Azure Cosmos DB serverless allows to use Azure Cosmos account in a consumption-based way only charged for the Request Units consumed by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found