Azure – Powershell code to get report of alerts trigerred in past 14 days
Am trying to get report of alerts fired in past 14 days from a resource group in Azure through PowerShell, The below code is running but the output of excel is blank. Get-AzAlert -TargetResourceGroup xxxxxxx | Export-Excel -Path C:UsersnameDownloadsa.xlsx $filterDate=(Get-Date).AddDays(-14)…