Have some windows server 2016 images pre-built from Packer/Chef, based on the stock GCE base images. We are then deploying new GCE instances from the custom images. The problem we are seeing is that instance_setup.ps1 doesn't appear to run for the new instances, thus the hostname doesn't get properly set, it gets left as the name of the instance during creation.
Is there a pattern to solve this effectively short of copying the hostname resetting code to a custom startup script?
Have some windows server 2016 images pre-built from Packer/Chef, based on the stock GCE base images. We are then deploying new GCE instances from the custom images. The problem we are seeing is that instance_setup.ps1 doesn't appear to run for the new instances, thus the hostname doesn't get properly set, it gets left as the name of the instance during creation.
Is there a pattern to solve this effectively short of copying the hostname resetting code to a custom startup script?