Skip to content

Commit 9ddf86e

Browse files
committed
update
1 parent d39dae1 commit 9ddf86e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-resource-manager/bicep/linter-rule-artifacts-parameters.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Linter rule - artifacts parameters
33
description: Linter rule - artifacts parameters
44
ms.topic: conceptual
5-
ms.date: 08/01/2022
5+
ms.date: 08/02/2022
66
---
77

88
# Linter rule - artifacts parameters
@@ -14,7 +14,7 @@ This rule verifies whether the artifacts parameters are defined correctly. The f
1414
- If `_artifactsLocation` has a default value, it must be either `'[deployment().properties.templateLink.uri]'` or a raw URL for its default value.
1515
- `_artifactsLocationSasToken` must be a secure string.
1616
- If `_artifactsLocationSasToken` has a default value, it must be an empty string
17-
- If 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.
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.
1818

1919
## Linter rule code
2020

@@ -33,15 +33,15 @@ param _artifactsLocation string = deployment().properties.templateLink.uri
3333
...
3434
```
3535

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.
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 defualt value of `_artifactsLocationSasToken` is not an empty string.
3737

3838
```bicep
3939
@description('The base URI where artifacts required by this template are located including a trailing \'/\'')
4040
param _artifactsLocation string = 'something'
4141
4242
@description('SAS Token for accessing script path')
4343
@secure()
44-
param _artifactsLocationSasToken string = ''
44+
param _artifactsLocationSasToken string = 'something'
4545
4646
...
4747
````

0 commit comments

Comments
 (0)