I basically have a decorator injecting steps into all pipelines of an organization. This decorator runs a PowerShell script that will trigger an azure function. Within our agent pool, we have our own self-hosted custom agents. Some of those don't have PowerShell installed. How can I trigger my az function?
We do not have control over the custom agents. It is not under our belt, so we need to handle random configurations on custom agents.
CodePudding user response:
ok, I resolved by converting all my PowerShell scripts to bash. Now I can script within a decorator that can run in any agent from any agent pool. The only setback is that different OS can have different bash versions and a mismatch of the code functions, so I still needed to make kind of a switch to determine what is the os and run a particular bash script.