I think the New-AzMetricAlertRuleV2 cmdlet is what you're looking for. If you need to work with "classic" alerts, the Add-AzMetricAlertRule might be what you want.
How to create a PS/CLI script for file share capacity alert with Action group
Swa1209
90
Reputation points
I want to create an alert for file capacity of files and I need an action group as well.
Problem is that the storage account has 90 files and i need for each fileshare 1 Alert.
I want to try using a script to avoid taking a lot of time doing it manually.
Can someone help me with this?
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,661 questions
Windows for business | Windows Server | User experience | PowerShell
Developer technologies | .NET | .NET CLI
350 questions