Hybrid Worker PS 7.2 setup

computerpaul2 21 Reputation points
2024-09-13T16:36:28.7533333+00:00

I'm trying to setup our hybrid workers to use PS 7.2 runbooks. I've installed PS7.2 and added the powershell_7_2_path env variable. When trying to start a runbook using the 7.2 runtime, I get the following error:

pwsh.exe is not recognized as a command or operable program. Install the language interpreter and add the installation path to PATH environment variable. If installation was done recently, restart the Hybrid Worker Service for extension based installation or restart the Microsoft Monitoring Agent for agent based installation. Looking for the executable at default location C:\PowerShell7\pwsh.exe.

I've gone through several different tests including restarts of the server, and installation of PS in the "default location" it mentions.

MS Documentation doesn't show anything else is required.

Any help would be greatly appreciated

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,261 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.