Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between template and yaml file in DevOps

I just started reading about DevOps on Microsoft site and I come across these 2 files. I'm confused about the process needing 2 files, with YAML using variable and template using parameter...At moment, I'm still unclear they have to separate between variable and parameter?

like image 492
user234568 Avatar asked Jun 24 '26 18:06

user234568


1 Answers

They are talking about ARM Templates. While you can have Parent/Child Templates it's more complex and I've never seen an example that split Variables and Parameters to different files.

To clear up the confusion ARM Templates have 5 main parts:

Variables things you know at design time like VNet address.

Parameters things you know at runtime and don't want stored in the template's (YAML format) script such as Usernames and Passwords.

Functions things you compute in your template.

Resources things you are provisioning.

Outputs things you can reuse, such as a Url result of provisioning a Azure Web App.

like image 166
Jeremy Thompson Avatar answered Jun 27 '26 14:06

Jeremy Thompson