You can use Azure Resource Manager templates to automate the creation of the Azure resources. Deploying resource through templates is known as 'Infrastructure as code'. To implement infrastructure as code for your Azure solutions, use Azure Resource Manager templates. The template is a JavaScript Object Notation (JSON) file that defines the infrastructure and configuration for your project. The template uses declarative syntax, which lets you state what you intend to deploy without having to write the sequence of programming commands to create it. In the template, you specify the resources to deploy and the properties for those resources. References: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/overview