Use a https template file schema
March 29, 2024 ยท View on GitHub
SYNOPSIS
Use an Azure template file schema with the https scheme.
DESCRIPTION
JSON schemas are used to validate the structure of Azure template 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/deploymentTemplate.json# points to a file.
All supported Azure template schemas use the https scheme.
RECOMMENDATION
Consider using a schema with the https scheme.
EXAMPLES
Configure with Azure template
To define Azure template files that pass this rule:
- Configure the template schema to a supported schema with the
https://URI prefix, such ashttps://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#.
For example:
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": { },
"functions": [],
"resources": [ ]
}