and forgot to change the name when i ran on a different tentacle (another box) .
I would expect an error when a machine name is already configured for the same environment, however, it updated the existing machine and eventually had to delete both from octopus server.
Thanks Leblanc, you are right, the behavior is not intuitive.
I’ll change the default behavior so that it throws instead of overwriting an existing machine, and add a -force option to allow overwriting, so that it is explicit.