I switched from extensibility action to customize hostname directly on template instead. Painful but a better outcome.