An open API service indexing awesome lists of open source software.

https://github.com/sydneyvert/Azure-Log-Search-Alert-Create-and-Remove-Scripts

Powershell functions to create and delete Azure log search alerts
https://github.com/sydneyvert/Azure-Log-Search-Alert-Create-and-Remove-Scripts

az-powershell azure azure-alerts azure-devops azure-functions azure-log-search azure-powershell powershell

Last synced: 2 months ago
JSON representation

Powershell functions to create and delete Azure log search alerts

Awesome Lists containing this project

README

        

# Scripts to create and remove log search alerts in Microsoft Azure

### To create a new log search alert:

```
New-LogSearchAlert -opResourceGroupName "MyOperationalInsightsResourceGroup" -actionResourceGroupName "MyResourceGroup" -ruleName "MyRule" -searchQuery "My azure activity search query" -workspaceName "MyOperationalInsightsWorkspaceName" -actionGroup "MyActionGroupName"
```

There are more optional parameters detailed in the Powershell script.

### To delete a log search alert:

```
Remove-LogSearchAlert -opResourceGroupName "MyOperationalInsightsResourceGroup" -ruleName "MyRule"
```