Skip to content

fix: lower ama free disk space check for '/etc' directory#2150

Open
joostdebruijn wants to merge 1 commit intoAzure:masterfrom
joostdebruijn:joost/fix-ama-diskspace-check
Open

fix: lower ama free disk space check for '/etc' directory#2150
joostdebruijn wants to merge 1 commit intoAzure:masterfrom
joostdebruijn:joost/fix-ama-diskspace-check

Conversation

@joostdebruijn
Copy link

This pull request makes a small change to the disk space check logic in the check_disk_space_availability function during the installation of the Azure Monitoring Agent. The minimum required free space for the /etc directory has been reduced from 500 MB to 5 MB.

In security-hardened environments (e.g., those following CIS Benchmarks), it is standard practice to implement Filesystem Segmentation, where directories like /etc, /var, and /opt are mounted on separate logical volumes or partitions. The current 500 MB requirement is prohibitive for these environments. A dedicated /etc partition is often sized conservatively (e.g., 1-2 GB total), and requiring 500 MB of free space forces administrators to unnecessarily resize system partitions. Since the Azure Monitoring Agent primarily uses /etc for small configuration files (storing binaries in /opt and logs in /var), the actual footprint in /etc is negligible (typically kilobytes).

Checking for 5MB maintains a safe buffer for config generation while resolving installation blockers on partitioned systems.

@joostdebruijn joostdebruijn requested a review from a team as a code owner February 7, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant