This is a full functional example of deploying a VM workload using a DSC configuration in Azure Automation and deployed using an Azure JSON template.
To follow along to understand how all the pieces fit together, please visit my blog - https://marckean.com/2018/06/28/azure-automation-dsc-config-example/