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
- Host: GitHub
- URL: https://github.com/sydneyvert/Azure-Log-Search-Alert-Create-and-Remove-Scripts
- Owner: sydneyvert
- Created: 2020-02-17T19:35:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T19:37:47.000Z (about 5 years ago)
- Last Synced: 2024-07-29T17:04:48.099Z (10 months ago)
- Topics: az-powershell, azure, azure-alerts, azure-devops, azure-functions, azure-log-search, azure-powershell, powershell
- Language: PowerShell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
```