Any resource in the Azure Resource Manager API can be defined as a JSON template. An Azure Resource Manager template is a declarative JSON file, which defines the Azure resources in a resource group and the dependencies between them. You can define an entire application in an Azure Resource Manager template and deploy it to Azure as a whole. Azure Resource Manager templates can be very useful for building continuous deployment pipelines.
To learn more, visit https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-overview#template-deployment.