maester icon indicating copy to clipboard operation
maester copied to clipboard

EXO/Teams Test is always skipped with Azure DevOps / GitHub - Due to service principal identity vs interactive/delegate

Open marcelorum opened this issue 8 months ago • 3 comments

Unable to run EXO tests with Azure DevOps. The test always fails because the Exchange module isn't installed or connected. Is there a way to connect to Exchange from a DevOps pipeline using Master?

marcelorum avatar Apr 25 '25 20:04 marcelorum

Renamed title to reflect common issue.

merill avatar May 05 '25 23:05 merill

This should work for GitHub, see here:

  • https://maester.dev/docs/monitoring/gitlab --> (Optional) Grant permissions to Exchange Online
  • include_exchange: false --> Create GitHub Action worklow for Maester

May DevOps does not work out of the box, but with some scripting this should be possible

  • Copy from here: https://github.com/maester365/maester-action/blob/main/action.yml
  • And my here: https://github.com/maester365/maester-action/blob/main/script/Run-MaesterAction.ps1

weyCC81 avatar Jul 20 '25 17:07 weyCC81

Following on from #788 I don't think the docs are quite correct they currently mention two different permissions as mentioned in #616 can anyone advise on the correct setup / permissions to use and I can open a PR to fix the docs Image

DanTaylor2 avatar Oct 08 '25 10:10 DanTaylor2