As you have seen in this chapter, there are different ways to provide automation with Azure Stack. If we talk about something that needs to happen in a VM as the last step after it has been deployed, we could do this with the VM extension feature. As things become more complex and we need a fully orchestrated and automated setup, the well-known old-school automation tools could help, but the smoother way (if we are in a connected scenario) would be to use Azure automation as a hybrid solution and provide on-premises Azure Stack automation using a connected scenario running and orchestrating automation tasks from Azure public.