Is it common for PowerShell scripts to break regularly due to Microsoft changes?

May 20, 2025 3 answers
Asked by ~over by noon
I've been working on an onboarding script for my company that utilizes Graph and ExchangeOnline. It feels like my script stops functioning every month, and I'm not sure if it's because I'm not skilled enough or if this inconsistency is just how PowerShell works. Has anyone else experienced this?

Answers

~ovenC175
I got tired of the Graph cmdlets and now I just do everything through API calls. Switching to API has made my scripts much more stable!

~turn signal+: Absolutely, thatโ€™s the way to go!

Reply to this answer
!one good reason
What sort of errors are you encountering? The Graph module itself works fine, but have you thought about the new Entra module? Itโ€™s easier to use and feels more familiar than the old AzureAD modules. Check it out if you havenโ€™t yet!

~52 cards shuffled: I didnโ€™t realize there was an Entra module; I thought Graph was the latest. Iโ€™ll look into it! Regarding errors, I donโ€™t have a specific example right now, but if I do, I might post again.

Reply to this answer
!trim the wick
While it might sound harsh, I think your challenges stem from your current skills. The Microsoft Graph API doesnโ€™t change too frequently unless youโ€™re using beta endpoints, which come with their own risks. Most automations we do with Graph and ExchangeOnline remain pretty stable, with maybe just annual tweaks needed. You might want to focus on building your grounding in these tools!

!still listening: I appreciate the honesty! Definitely gives me some motivation to step up my game.

user-interface-copy: What exactly are the risks with the beta endpoints?

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions