Installation and shell to move physical and logical SQL Server in azure IaaS VM
It's typically not necessary to use custom templates and installation for SQL Server on Azure Virtual Machines.  The Azure Marketplace has an extensive collection of pre-configured templates for SQL Server on Azure Virtual Machines, which you can deploy through the Azure Portal or through Powershell.  These are built and maintained by the SQL Server engineering team, and definitely the easiest way to deploy and run SQL Server on Azure VMs.