Skip to content

Commit 500bb77

Browse files
committed
Refresh the test toolkit articles
1 parent 0327e22 commit 500bb77

File tree

5 files changed

+20
-27
lines changed

5 files changed

+20
-27
lines changed

articles/azure-resource-manager/templates/all-files-test-cases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: All files test cases for Azure Resource Manager test toolkit
33
description: Describes the tests that are run for all files by the Azure Resource Manager template test toolkit.
44
ms.topic: how-to
55
ms.custom: devx-track-arm-template
6-
ms.date: 06/20/2024
6+
ms.date: 07/23/2025
77
---
88

99
# Test cases for all files

articles/azure-resource-manager/templates/createuidefinition-test-cases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: createUiDefinition.json test cases for Azure Resource Manager test toolki
33
description: Describes the createUiDefinition.json tests that are run by the Azure Resource Manager template test toolkit.
44
ms.topic: conceptual
55
ms.custom: devx-track-arm-template
6-
ms.date: 06/20/2024
6+
ms.date: 07/23/2025
77
---
88

99
# Test cases for createUiDefinition.json

articles/azure-resource-manager/templates/parameter-file-test-cases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Parameter file test cases for Azure Resource Manager test toolkit
33
description: Describes the parameter file tests that are run by the Azure Resource Manager template test toolkit.
44
ms.topic: conceptual
55
ms.custom: devx-track-arm-template
6-
ms.date: 04/28/2025
6+
ms.date: 07/23/2025
77
---
88

99
# Test cases for parameter files

articles/azure-resource-manager/templates/template-test-cases.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Template test cases for test toolkit
33
description: Describes the template tests that are run by the Azure Resource Manager template test toolkit.
44
ms.topic: conceptual
55
ms.custom: devx-track-arm-template
6-
ms.date: 04/28/2025
6+
ms.date: 07/23/2025
77
---
88

99
# Test cases for ARM templates
@@ -178,13 +178,12 @@ The following example **fails** because the resource's `location` is set to `res
178178
"resources": [
179179
{
180180
"type": "Microsoft.Storage/storageAccounts",
181-
"apiVersion": "2021-02-01",
181+
"apiVersion": "2025-01-01",
182182
"name": "storageaccount1",
183183
"location": "[resourceGroup().location]",
184184
"kind": "StorageV2",
185185
"sku": {
186186
"name": "Premium_LRS",
187-
"tier": "Premium"
188187
}
189188
}
190189
]
@@ -207,13 +206,12 @@ The next example uses a `location` parameter but **fails** because the parameter
207206
"resources": [
208207
{
209208
"type": "Microsoft.Storage/storageAccounts",
210-
"apiVersion": "2021-02-01",
209+
"apiVersion": "2025-01-01",
211210
"name": "storageaccount1",
212211
"location": "[parameters('location')]",
213212
"kind": "StorageV2",
214213
"sku": {
215214
"name": "Premium_LRS",
216-
"tier": "Premium"
217215
}
218216
}
219217
],
@@ -240,13 +238,12 @@ The following example **passes** when the template is used as the main template.
240238
"resources": [
241239
{
242240
"type": "Microsoft.Storage/storageAccounts",
243-
"apiVersion": "2021-02-01",
241+
"apiVersion": "2025-01-01",
244242
"name": "storageaccount1",
245243
"location": "[parameters('location')]",
246244
"kind": "StorageV2",
247245
"sku": {
248246
"name": "Premium_LRS",
249-
"tier": "Premium"
250247
}
251248
}
252249
],
@@ -277,13 +274,12 @@ The following example **fails** because the `location` isn't an expression or `g
277274
"resources": [
278275
{
279276
"type": "Microsoft.Storage/storageAccounts",
280-
"apiVersion": "2021-02-01",
277+
"apiVersion": "2025-01-01",
281278
"name": "storageaccount1",
282279
"location": "westus",
283280
"kind": "StorageV2",
284281
"sku": {
285282
"name": "Premium_LRS",
286-
"tier": "Premium"
287283
}
288284
}
289285
],
@@ -303,13 +299,12 @@ The following example **passes** because the resource `location` is set to `glob
303299
"resources": [
304300
{
305301
"type": "Microsoft.Storage/storageAccounts",
306-
"apiVersion": "2021-02-01",
302+
"apiVersion": "2025-01-01",
307303
"name": "storageaccount1",
308304
"location": "global",
309305
"kind": "StorageV2",
310306
"sku": {
311307
"name": "Premium_LRS",
312-
"tier": "Premium"
313308
}
314309
}
315310
],
@@ -337,13 +332,12 @@ The next example also **passes** because the `location` parameter uses an expres
337332
"resources": [
338333
{
339334
"type": "Microsoft.Storage/storageAccounts",
340-
"apiVersion": "2021-02-01",
335+
"apiVersion": "2025-01-01",
341336
"name": "storageaccount1",
342337
"location": "[parameters('location')]",
343338
"kind": "StorageV2",
344339
"sku": {
345340
"name": "Premium_LRS",
346-
"tier": "Premium"
347341
}
348342
}
349343
],
@@ -363,7 +357,7 @@ The following example **fails** because the `hardwareProfile` object's `vmSize`
363357
"resources": [
364358
{
365359
"type": "Microsoft.Compute/virtualMachines",
366-
"apiVersion": "2020-12-01",
360+
"apiVersion": "2024-11-01",
367361
"name": "demoVM",
368362
"location": "[parameters('location')]",
369363
"properties": {
@@ -395,7 +389,7 @@ Then, `hardwareProfile` uses an expression for `vmSize` to reference the paramet
395389
"resources": [
396390
{
397391
"type": "Microsoft.Compute/virtualMachines",
398-
"apiVersion": "2020-12-01",
392+
"apiVersion": "2024-11-01",
399393
"name": "demoVM",
400394
"location": "[parameters('location')]",
401395
"properties": {
@@ -634,7 +628,7 @@ The following example **passes** because it's a recent version that's not a prev
634628
"resources": [
635629
{
636630
"type": "Microsoft.Storage/storageAccounts",
637-
"apiVersion": "2021-02-01",
631+
"apiVersion": "2025-01-01",
638632
"name": "storageaccount1",
639633
"location": "[parameters('location')]"
640634
}
@@ -665,7 +659,7 @@ The following example **passes**.
665659
"resources": [
666660
{
667661
"type": "Microsoft.Compute/virtualMachines",
668-
"apiVersion": "2020-12-01",
662+
"apiVersion": "2024-11-01",
669663
...
670664
}
671665
]
@@ -685,7 +679,7 @@ The following example **fails** because there are empty properties.
685679
"resources": [
686680
{
687681
"type": "Microsoft.Storage/storageAccounts",
688-
"apiVersion": "2021-01-01",
682+
"apiVersion": "2025-01-01",
689683
"name": "storageaccount1",
690684
"location": "[parameters('location')]",
691685
"sku": {},
@@ -700,12 +694,11 @@ The following example **passes** because the properties include values.
700694
"resources": [
701695
{
702696
"type": "Microsoft.Storage/storageAccounts",
703-
"apiVersion": "2021-01-01",
697+
"apiVersion": "2025-01-01",
704698
"name": "storageaccount1",
705699
"location": "[parameters('location')]",
706700
"sku": {
707701
"name": "Standard_LRS",
708-
"tier": "Standard"
709702
},
710703
"kind": "Storage"
711704
}
@@ -739,7 +732,7 @@ The next example **passes**.
739732

740733
```json
741734
"networkSecurityGroup": {
742-
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('networkSecurityGroupName'))]"
735+
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('networkSecurityGroupName'))]"
743736
}
744737
```
745738

@@ -753,15 +746,15 @@ The following example **fails** because you don't need to provide the current su
753746

754747
```json
755748
"networkSecurityGroup": {
756-
"id": "[resourceId(subscription().subscriptionId, resourceGroup().name, 'Microsoft.Network/networkSecurityGroups', variables('networkSecurityGroupName'))]"
749+
"id": "[resourceId(subscription().subscriptionId, resourceGroup().name, 'Microsoft.Network/networkSecurityGroups', variables('networkSecurityGroupName'))]"
757750
}
758751
```
759752

760753
The next example **passes**.
761754

762755
```json
763756
"networkSecurityGroup": {
764-
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('networkSecurityGroupName'))]"
757+
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('networkSecurityGroupName'))]"
765758
}
766759
```
767760

articles/azure-resource-manager/templates/test-toolkit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: ARM template test toolkit
33
description: Describes how to run the Azure Resource Manager template (ARM template) test toolkit on your template. The toolkit lets you see if you have implemented recommended practices.
44
ms.topic: conceptual
55
ms.custom: devx-track-arm-template, linux-related-content
6-
ms.date: 04/28/2025
6+
ms.date: 07/23/2025
77
---
88

99
# Use ARM template test toolkit

0 commit comments

Comments
 (0)