Skip to content

Best Practice

Here is a list of things to be considered when writing templates.

  • Use consisting naming across all your DeploymentTemplates/ResourceGroupTemplates/Resources. Use lowercase or camelcase.
  • Parameterize or use an identifier like {{deployment.name}} for aliases in order to have them unique. Existing aliases are not overwritten.
  • Write ResourceGroupTemplates as basic as possible to make them useable by other Deployments.
  • ResourceGroupTemplates should contain as less resources as possible and should rely on parameters. E.g. if you have an application consisting of multiple application servers, describe the application server once and link the ResourceGroup multiple times in the DeploymentTemplate.
  • Use default values for parameters wherever it is possible.