Creating compute resources is what Azure Stack is made for. Whether these resources are created in the UI or in PowerShell, you can benefit from a template deployment.
This recipe shows you how to deploy resources using PowerShell Core and the ARM cmdlets. If you already know how to do this, you can skip ahead to the last recipe, Configuring guests with DSC on Azure Stack, where you will be using ARM templates.