When running custom scripts that remove connections "$context.O365RemoveAllModulesSessions()", the PowerShell session with ExchangeOnline is also unexpectedly terminated. This incorrect behavior disrupts Azure operations that rely on an active ExchangeOnline session.
This issue has been identified as a product defect and the following defect id #491674 has been assigned to our Active Roles Product team for consideration of inclusion within a future release of Active Roles.
WORKAROUND
None
STATUS
Our Active Roles Product Team is reviewing this defect for potential resolution in a future product release.
© 2025 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center