diff --git a/AzureMonitorAgent/agent.py b/AzureMonitorAgent/agent.py index 842961a44..959f3cfd6 100644 --- a/AzureMonitorAgent/agent.py +++ b/AzureMonitorAgent/agent.py @@ -240,7 +240,7 @@ def check_disk_space_availability(): Check if there is the required space on the machine. """ try: - if get_free_space_mb("/var") < 700 or get_free_space_mb("/etc") < 500 or get_free_space_mb("/opt") < 500 : + if get_free_space_mb("/var") < 700 or get_free_space_mb("/etc") < 5 or get_free_space_mb("/opt") < 500 : # 52 is the exit code for missing dependency i.e. disk space # https://github.com/Azure/azure-marketplace/wiki/Extension-Build-Notes-Best-Practices#error-codes-and-messages-output-to-stderr return MissingDependency