How to Fix Command Prompt 502 Bad Gateway Error - Exchange Online PowerShell Migration Steps-How to Allow an App Through Windows Defender Firewall

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.