Parameters
If you want to leverage the power of infrastructure as code, which is reusability, you need to be able to pass parameters to customize the resources for different environments. The first thing Azure Resource Manager does before deployment is to have a look at the templates and resolve their values. Then, within the template, it looks for each usage of the parameter and replaces that with the actual value, then starts the deployment.
Setting a type for each parameter is mandatory and you can define them in multiple ways.
Minimalistic definition
The least you must declare for your parameters is a name and a type:
param isProd bool param storageName string
The name of the parameter cannot be the same as any other name in the same template, such as a variable, resource, function, or other parameters.
Setting default values
At times, you might like to add a default value in case the user did not pass any value to your deployment. This can also mean the parameter...