microsoft azure build agent - powershell 11.0 vs 10.4 breaking changes
Recently our build pipeline using microsoft build agents - bump into some issues with running powershell scripts and getting error like "PowerShell The term is not recognized as cmdlet function". To add salt to the wounds there error message is really confusing - AzureRM and Az Powershell are installed side by side.
In actual fact, the powershell has been upgrade from 10 to 11 and there's changes to the command here.
Anyways to fix this issue, you have to change your script to version 11 or try to install 10 to the build agent.
Comments