File tree Expand file tree Collapse file tree 4 files changed +35
-2
lines changed
articles/azure-resource-manager/bicep Expand file tree Collapse file tree 4 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 2
2
title : Linter settings for Bicep config
3
3
description : Describes how to customize configuration values for the Bicep linter
4
4
ms.topic : conceptual
5
- ms.date : 09/23 /2022
5
+ ms.date : 09/30 /2022
6
6
---
7
7
8
8
# Add linter settings in the Bicep config file
@@ -89,6 +89,9 @@ The following example shows the rules that are available for configuration.
89
89
"use-protectedsettings-for-commandtoexecute-secrets" : {
90
90
"level" : " warning"
91
91
},
92
+ "use-recent-api-versions" : {
93
+ "level" : " warning"
94
+ },
92
95
"use-resource-id-functions" : {
93
96
"level" : " warning"
94
97
},
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Linter rule - use recent API versions
3
+ description : Linter rule - use recent API versions
4
+ ms.topic : conceptual
5
+ ms.date : 09/30/2022
6
+ ---
7
+
8
+ # Linter rule - use recent API versions
9
+
10
+ This rule looks for resource API versions that are older than 730 days. It is recommended to use the most recent API versions.
11
+
12
+ > [ !NOTE]
13
+ > This rule is off by default, change the level in [ bicepconfig.json] ( ./bicep-config-linter.md ) to enable it.
14
+
15
+ ## Linter rule code
16
+
17
+ Use the following value in the [ Bicep configuration file] ( bicep-config-linter.md ) to customize rule settings:
18
+
19
+ ` use-recent-api-versions `
20
+
21
+ ## Solution
22
+
23
+ Use the most recent API version, or one that is no older than 730 days.
24
+
25
+ ## Next steps
26
+
27
+ For more information about the linter, see [ Use Bicep linter] ( ./linter.md ) .
Original file line number Diff line number Diff line change 2
2
title : Use Bicep linter
3
3
description : Learn how to use Bicep linter.
4
4
ms.topic : conceptual
5
- ms.date : 9/23 /2022
5
+ ms.date : 9/30 /2022
6
6
---
7
7
8
8
# Use Bicep linter
@@ -39,6 +39,7 @@ The default set of linter rules is minimal and taken from [arm-ttk test cases](.
39
39
- [ secure-secrets-in-params] ( ./linter-rule-secure-secrets-in-parameters.md )
40
40
- [ simplify-interpolation] ( ./linter-rule-simplify-interpolation.md )
41
41
- [ use-protectedsettings-for-commandtoexecute-secrets] ( ./linter-rule-use-protectedsettings-for-commandtoexecute-secrets.md )
42
+ - [ use-recent-api-versions] ( ./linter-rule-use-recent-api-versions.md )
42
43
- [ use-resource-id-functions] ( ./linter-rule-use-resource-id-functions.md )
43
44
- [ use-stable-resource-identifiers] ( ./linter-rule-use-stable-resource-identifier.md )
44
45
- [ use-stable-vm-image] ( ./linter-rule-use-stable-vm-image.md )
Original file line number Diff line number Diff line change 432
432
href : linter-rule-simplify-interpolation.md
433
433
- name : Use explicit values for module location parameters
434
434
href : linter-rule-explicit-values-for-loc-params.md
435
+ - name : use recent API versions
436
+ href : linter-rule-use-recent-api-versions.md
435
437
- name : use resource ID functions
436
438
href : linter-rule-use-resource-id-functions.md
437
439
- name : Use stable resource identifier
You can’t perform that action at this time.
0 commit comments