PowerShell to monitor CosmosDB

Oleg Aronov 131 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,693 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,576 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,482 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.