Skip to content

Use a https template parameter file schema#

Operational Excellence · All resources · Azure.Template.ParameterScheme

Use an Azure template parameter file schema with the https scheme.

Description#

JSON schemas are used to validate the structure of Azure template parameter files. The JSON schema specification permits schemas to use https or http schemes. When using referencing schemas served by schema.management.azure.com the http scheme redirects to https.

While http://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json# points to a file. All supported Azure template parameter schemas use the https scheme.

Recommendation#

Consider using a schema with the https scheme.

Examples#

Configure with Azure template#

To define Azure template parameter files that pass this rule:

  • Configure the template parameter schema to a supported schema with the https:// URI prefix, such as https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#.

For example:

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

Last update: 2021-10-19