Specify a value for each parameter

March 29, 2024 ยท View on GitHub

SYNOPSIS

Specify a value for each parameter in template parameter files.

DESCRIPTION

When defining a template parameter file:

  • Uou must specify a value for each parameter in the file.
  • If the parameter is optional, you can omit the parameter from the file.
  • If the parameter is required, you must specify a value for the parameter.

RECOMMENDATION

Consider defining a value for each parameter in the template parameter file.

EXAMPLES

Configure with Azure template

To define Azure template parameter files that pass this rule:

  • Set a value for each parameter specified in the file.

For example:

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "parameter1": {
            "value": "value1"
        },
        "parameter2": {
            "value": []
        }
    }
}