You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/linter-rule-artifacts-parameters.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Linter rule - artifacts parameters
3
3
description: Linter rule - artifacts parameters
4
4
ms.topic: conceptual
5
-
ms.date: 08/02/2022
5
+
ms.date: 08/05/2022
6
6
---
7
7
8
8
# Linter rule - artifacts parameters
@@ -11,7 +11,7 @@ This rule verifies whether the artifacts parameters are defined correctly. The f
11
11
12
12
- If you provide one parameter (either `_artifactsLocation` or `_artifactsLocationSasToken`), you must provide the other.
13
13
-`_artifactsLocation` must be a string.
14
-
- If `_artifactsLocation` has a default value, it must be either `'[deployment().properties.templateLink.uri]'` or a raw URL for its default value.
14
+
- If `_artifactsLocation` has a default value, it must be either `deployment().properties.templateLink.uri` or a raw URL for its default value.
15
15
-`_artifactsLocationSasToken` must be a secure string.
16
16
- If `_artifactsLocationSasToken` has a default value, it must be an empty string.
17
17
- If a referenced module has an `_artifactsLocation` or `_artifactsLocationSasToken` parameter, a value must be passed in for those parameters, even if they have default values in the module.
The next example fails this test because `_artifactsLocation` must be either `'[deployment().properties.templateLink.uri]'` or a raw URL when the default value is provided, and the defualt value of `_artifactsLocationSasToken` is not an empty string.
36
+
The next example fails this test because `_artifactsLocation` must be either `deployment().properties.templateLink.uri` or a raw URL when the default value is provided, and the default value of `_artifactsLocationSasToken` is not an empty string.
37
37
38
38
```bicep
39
39
@description('The base URI where artifacts required by this template are located including a trailing \'/\'')
@@ -50,7 +50,7 @@ This example passes this test.
50
50
51
51
```bicep
52
52
@description('The base URI where artifacts required by this template are located including a trailing \'/\'')
0 commit comments