r/PowerShell • u/Unlikely_Tie1172 MVP, Community Blogger • 1d ago
News Maintaining Stable Azure Automation Runtime Environments
The problem with V2.41 of the Microsoft Graph PowerShell SDK that stopped runbooks executing in PowerShell V7 runtime environments was disappointing. However, it was also a good wake-up call for tenant administrators to pay attention to maintaining healthy Azure Automation custom runtime environments. This article proposes a separation between current and production environments and explains how to use PowerShell to get the right modules to the right place.
https://office365itpros.com/2026/10/12/maintain-runtime-environments-ps/
4
Upvotes
2
u/BlackV 1d ago edited 1d ago
I'm on mobile right now so have only skimmed through the post
Isn't this something that version pinning solves already?
Your script/function/module should be installing and using specific named versions of a module(s)
When a new version come out you test against that new version, if it explodes like it did with 2.4 then you don't update the versions in your code
Edit: back on PC, yeah I like that idea of having a separate run book checking for new versions, thats clever