Using PowerShell 7 in Azure Runbooks
Mar 18, 2021
I’m a huge advocate for automation, with PowerShell and Azure being my weapon of choice. Sometimes, the built-in service offering is insufficient in achieving your desired outcome. Take today for example; I’ve proposed to a client of ours that we leverage Azure Hybrid Worker Groups to offer greater redundancy for a user export script. The problem? Azure Automation does not currently offer support for PowerShell version 7.0.
The solution? Wildly simple.
- Create your Azure Hybrid Worker Group as normal.
- Install PowerShell 7.0 on your Hybrid Worker nodes
- Add the below into your PoSH Runbook, with your script body existing within the command block.