Forum Discussion

loadedlouie27's avatar
loadedlouie27
Brass Contributor
Aug 17, 2020
Solved

LogAnalytics Workspaces - Suppression of alarms from specific Resources

Hi all just a quick question.    I currently have a suppress rule for the resource group with all of the resources in that RG suppressed.  I also have another RG with log analytics workspace, a...
  • yalavi's avatar
    Aug 18, 2020

    loadedlouie27 the best was is if you use 'Aggregated on', in a metric measure log alert rule, on '_ResourceId'. Then use Action Rules to suppress based on the alert content, setting the relevant resource group from the VM ARM resource ID. 

     

    Example of VM resource ID:

    /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}

     

     

    Action rules context filter:

     

Resources