PowerShell to monitor CosmosDB

olegarr 106 Reputation points


I need some help to write a script that would collect normalized RU/s for an Azure CosmosDB.

I just want to run it and check the Normalized RU Consumption for an Azure CosmosDB during past 30 days.

Any ideas how to achieve it?

I can select CosmosDB, but have no idea how to get the metric I need.

Thank you

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,049 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,883 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 18,886 Reputation points Microsoft Employee

    Hi @olegarr We don’t publish anything in PowerShell that provides this type of data. The only thing I can recommend is the Monitor PS cmdlet. This would appear to provide you the means of both creating new metrics to record as well as gathering metrics via the Get-AzMetric cmdlet.

    Please let me know if you need any additional information.


    0 comments No comments