diff --git a/unit-tests/apiversions-should-be-recent/Fail/OldApiVersion-BuiltWithBicep.json b/unit-tests/apiversions-should-be-recent/Fail/OldApiVersion-BuiltWithBicep.json new file mode 100644 index 00000000..dbbb468f --- /dev/null +++ b/unit-tests/apiversions-should-be-recent/Fail/OldApiVersion-BuiltWithBicep.json @@ -0,0 +1,58 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.4.1124.51302", + "templateHash": "12825026901412401447" + } + }, + "parameters": { + "privatelinkDnsZoneName": { + "type": "string" + } + }, + "resources": [ + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2020-10-01", + "name": "dnsDeploy", + "properties": { + "expressionEvaluationOptions": { + "scope": "inner" + }, + "mode": "Incremental", + "parameters": { + "privatelinkDnsZoneName": { + "value": "[parameters('privatelinkDnsZoneName')]" + } + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.4.1124.51302", + "templateHash": "2116389511501495551" + } + }, + "parameters": { + "privatelinkDnsZoneName": { + "type": "string" + } + }, + "resources": [ + { + "type": "Microsoft.Network/privateDnsZones", + "apiVersion": "2018-09-01", + "name": "[parameters('privatelinkDnsZoneName')]", + "location": "Global" + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/unit-tests/apiversions-should-be-recent/Fail/OldApiVersion-In-SymbolicResource.json b/unit-tests/apiversions-should-be-recent/Fail/OldApiVersion-In-SymbolicResource.json index a2dccda6..54e65c1d 100644 --- a/unit-tests/apiversions-should-be-recent/Fail/OldApiVersion-In-SymbolicResource.json +++ b/unit-tests/apiversions-should-be-recent/Fail/OldApiVersion-In-SymbolicResource.json @@ -30,7 +30,7 @@ "resources": { "NestedDeployment": { "type": "Microsoft.Resources/deployments", - "apiVersion": "2016-04-01", + "apiVersion": "2015-01-01", "name": "[variables('nestedTemplateName_ImportVHD-FromZipArchive')]", "properties": { "mode": "Incremental",