MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.13k stars 21.21k forks source link

Disable the email if there are no failing checks #102008

Closed RichardNorton closed 11 months ago

RichardNorton commented 1 year ago

Is it possible to have the email not sent if there are no failing checks as we only care if there are failed checks.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

GeethaThatipatri-MSFT commented 1 year ago

@RichardNorton Thank you for reaching out. We will look into it and update you as appropriate.

CESANU commented 1 year ago

Hi @RichardNorton, Thanks for reaching out.

The built-in email mechanism available in VA with classic configuration does not allow this type of configuration and there are currently no plans to add this ability. What you could do is customize your own email notifications with custom logic using LogicApps.

Here's an example template: https://github.com/Azure/Microsoft-Defender-for-Cloud/tree/main/Workflow%20automation/Notify-SQLVulnerabilityReport

You could add a condition that'll send an email only if there are unhealthy findings.

Hope this helps.

Regards, Catalin

MashaMSFT commented 11 months ago

Hi @RichardNorton , thanks for contacting Microsoft! Looks like Catalin was able to address your question so I'll go ahead and close out this Git Issue but please feel free to comment should you need anything further.

Thanks again for reaching out and I hope you have a wonderful rest of your day! Masha from the SQL Docs team

please-close