Python script to enumerate valid Microsoft 365 domains, retrieve tenant name, and check for a Microsoft Defender for Identity (MDI) instance.
Based on: https://github.com/thalpius/Microsoft-Defender-for-Identity-Check-Instance.
./check_mdi.py -d <domain>