Passing credentials to agents

The Event Hub agents don’t currently (as in, they will eventually from what I’ve been told by @adam) have access to the variables in PSU, so the solution is to either store the credentials needed directly in the script you want to execute on the remote agent (which is a bad idea for security reasons) or to reference the variables in part of an arguments list that is passed on to the remote agent so that it’s already been evaluated on the PSU side prior to transmitting the data/command to the agent so that the agent now has the value it needs without needing to access the variable directly. You can look at Event Hubs - do agents have access to Secret variables? - #9 by parzog to get an example of how to do this.