Azure Defender On Linux VM – Help With Exit Codes
Hello,
We have installed Azure Defender on a Linux VM and need to run a custom virus scan from a bash script. Our goal is to scan a file and identify any threats.
Below is the bash script we are using. We assumed that mdatp would return an exit code of 0 if no threat is found, and an exit code greater than 0 if a threat is identified. However, it always returns an exit code of 0. Could you guide us on the correct exit codes returned by mdatp or suggest a better approach?
Many thanks in advance
Hello, We have installed Azure Defender on a Linux VM and need to run a custom virus scan from a bash script. Our goal is to scan a file and identify any threats. Below is the bash script we are using. We assumed that mdatp would return an exit code of 0 if no threat is found, and an exit code greater than 0 if a threat is identified. However, it always returns an exit code of 0. Could you guide us on the correct exit codes returned by mdatp or suggest a better approach?Many thanks in advance Read More