I'm trying to create some azure monitor rules for the output of log searches, doing this through the web UI is simple enough but I want to automate this through the CLI.
Looking through the documentation there doesn't seem to be a way that I can see to do this, but AFAIK everything is possible through the CLI?
I've tried creating the alert rule manually and then looking at the output of Get-AzureRmAlertRule but this shows no results for the log search alert.
Has anyone managed to do this via the CLI?