From 292ddeab569f9285ef8c629e91cf483634a66dec Mon Sep 17 00:00:00 2001 From: Philip Mallegol-Hansen Date: Mon, 15 May 2023 11:26:53 -0700 Subject: [PATCH] Updates ARM template API version (#4188) API versions older than 2 years are treated as errors by the ARM linter. --- .automation/test/arm/README.md | 2 +- .automation/test/arm/arm_bad_1.json | 2 +- .automation/test/arm/arm_good_1.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.automation/test/arm/README.md b/.automation/test/arm/README.md index e28d398a..08354610 100644 --- a/.automation/test/arm/README.md +++ b/.automation/test/arm/README.md @@ -4,7 +4,7 @@ This folder holds the test cases for **Azure Resource Manager (ARM)**. ## Additional Docs -No Additional information is needed for this test case. +Note: apiVersions older than 2 years (730 days) are treated as errors by the ARM linter if there is a newer version available. ## Good Test Cases diff --git a/.automation/test/arm/arm_bad_1.json b/.automation/test/arm/arm_bad_1.json index ded8762b..d642c602 100644 --- a/.automation/test/arm/arm_bad_1.json +++ b/.automation/test/arm/arm_bad_1.json @@ -31,7 +31,7 @@ { "name": "[variables('Network.Name')]", "type": "Microsoft.Network/virtualNetworks", - "apiVersion": "2021-05-01", + "apiVersion": "2022-09-01", "tags": "[variables('Network.Tags')]", "properties": { "addressSpace": { diff --git a/.automation/test/arm/arm_good_1.json b/.automation/test/arm/arm_good_1.json index 8444b5b9..3f011abf 100644 --- a/.automation/test/arm/arm_good_1.json +++ b/.automation/test/arm/arm_good_1.json @@ -22,7 +22,7 @@ "resources": [ { "type": "Microsoft.Storage/storageAccounts", - "apiVersion": "2021-05-01", + "apiVersion": "2022-09-01", "name": "[concat('store', uniquestring(resourceGroup().id))]", "location": "[parameters('location')]", "kind": "StorageV2",