Forum Discussion
New V2 alert from PowerShell
- Dec 10, 2018
Hi Gourav,
The cmdlet you are using is for classic metric alerts in Azure Monitor. Classic metric alerts didn't support action groups and used a custom notification mechanism.
We don't yet have PowerShell cmdlets for newer metric alerts. We are actively working on those and will provide an announcement once they are ready.In the meanwhile, if you are trying to create metric alerts, you can use Azure CLI to automate creating alerts. You can also create action groups through CLI as well.
If you trying to create log alerts based on Kusto queries, today the only way to automate it is through ARM templates. The PS cmdlets and CLI are being worked on, but are not available yet.
Regards,
Snehith
could you please let me know if we have any particular forum for Azure Monitors.
- snehithDec 10, 2018
Microsoft
Hi Gourav,
The cmdlet you are using is for classic metric alerts in Azure Monitor. Classic metric alerts didn't support action groups and used a custom notification mechanism.
We don't yet have PowerShell cmdlets for newer metric alerts. We are actively working on those and will provide an announcement once they are ready.In the meanwhile, if you are trying to create metric alerts, you can use Azure CLI to automate creating alerts. You can also create action groups through CLI as well.
If you trying to create log alerts based on Kusto queries, today the only way to automate it is through ARM templates. The PS cmdlets and CLI are being worked on, but are not available yet.
Regards,
Snehith- sarbisFeb 20, 2019Copper ContributorHi Snehith,
Do you have any EDT on the Powershell cmdlets for the new metric alerts? Or is there maybe any reference of a related issue / ticket which we could subscribe to?
It seems kind of inconvenient situation when we're getting notifications in portal about classic alerts being retired soon and suggestion to use new ones. We would be happy to do that. At the same time we don't have an alternative for Powershell cmdlets which we are using for classic alerts at the moment.- snehithFeb 20, 2019
Microsoft
Hi sarbis,
We expect PowerShell cmdlets for newer metric alerts to be available by end of March.
Please subscribe to https://azure.microsoft.com/en-us/updates/?updatetype=management or keep an eye out on What's new tab in Azure Monitor to get notified when we release this.
Regards,
Snehith
- GouravINDec 10, 2018Brass Contributor
Thanks for the response, I am working with ARM now.