Template parameters can be different types including object. When a default value for an object parameter is specified the default value is serialized as a string instead of an object.
For example
{
"type": "object",
"defaultValue": {
"defaultAction": "Allow",
"bypass": "AzureServices",
"ipRules": [],
"virtualNetworkRules": []
}
}
Which is outputted as:
@{defaultAction=Allow; bypass=AzureServices; ipRules=System.Object[]; virtualNetworkRules=System.Object[]}
This formatting is not ideal and hard to understand, we can do better.
Template parameters can be different types including
object. When a default value for anobjectparameter is specified the default value is serialized as a string instead of an object.For example
{ "type": "object", "defaultValue": { "defaultAction": "Allow", "bypass": "AzureServices", "ipRules": [], "virtualNetworkRules": [] } }Which is outputted as:
This formatting is not ideal and hard to understand, we can do better.