I have a need in a powershell script to get all of the machines that were selected for the deployment from within a step. Is that possible?
I have an unusual use case. Developers can spin up as as many VM’s as they want. These get added to a “Disposable” environment. When someone deploys to that environment, they must only deploy to a specific machine and not to all of them. I wanted to add a powershell script that would only execute if the environment = “Disposable” and would fail if the machine count > 1.
I can get the current machine but not all of them.