How to check if a Cosmos DB account is a serverless account?
See original GitHub issueThere 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:
- Created 3 years ago
- Comments:13 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not working on Cosmos DB anymore, adding @deborahc who might know the answer.
@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)