Hi,
I have a project, where in step 1 it runs an ARM template to create a VM with a DSC extension which adds the VM to Octopus server as a deployment target, sets the environments and Role “WW”.
The following steps need to be ran on the VM in step 1. Each step 2-7 have been set to run on the deployment target matching the role “WW”.
Instead of them running, I get some information telling me :-
"Skipping this step as no matching targets were found "
What do I have to do to get this to work?
If this is down to when it originally ran the role wasn’t there. Can I add a step in to "refresh the following steps to check the role and see that it does it exist and runs
Hi Jeremy,
It’s a windows workstation. The reason I want to the deployment target configuration separate to the deployment of this machine is because when this machine gets created I call an existing project, which configures the workstations in a particular way, I don’t want to change that process. So I was hoping there was a step, I could set to say make this machine a target. I’ve got around it with some DSC script which deploys the octopus tentacle, this is ran on a worker node which configures the workstation as a target. It’s a lot of work for making something part of the deployment process.
I think the easiest method here would be running scripts via Remote PowerShell or an SSH connection. Do you have either of those available to you with that box? You could run the commands on the server or a worker to establish the targets and then delete them later.