PowerShell to monitor CosmosDB

Oleg Aronov 106 Reputation points
2022-04-29T16:33:08.88+00:00

Hello:

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,456 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.
5,390 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 27,722 Reputation points Microsoft Employee
    2022-05-10T22:24:39.633+00:00

    Hi @Oleg Aronov 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.

    Regards
    Geetha

    0 comments No comments