Skip to content

Commit 7f0f9c6

Browse files
committed
incorporate Stephen's feedback
1 parent 230c249 commit 7f0f9c6

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/02/2022
5+
ms.date: 08/05/2022
66
---
77

88
# Linter rule - artifacts parameters
@@ -11,7 +11,7 @@ This rule verifies whether the artifacts parameters are defined correctly. The f
1111

1212
- If you provide one parameter (either `_artifactsLocation` or `_artifactsLocationSasToken`), you must provide the other.
1313
- `_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.
1515
- `_artifactsLocationSasToken` must be a secure string.
1616
- If `_artifactsLocationSasToken` has a default value, it must be an empty string.
1717
- 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.
@@ -33,7 +33,7 @@ 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, 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.
3737

3838
```bicep
3939
@description('The base URI where artifacts required by this template are located including a trailing \'/\'')
@@ -50,7 +50,7 @@ This example passes this test.
5050
5151
```bicep
5252
@description('The base URI where artifacts required by this template are located including a trailing \'/\'')
53-
param _artifactsLocation string = 'deployment().properties.templateLink.uri'
53+
param _artifactsLocation string = deployment().properties.templateLink.uri
5454
5555
@description('SAS Token for accessing script path')
5656
@secure()

0 commit comments

Comments
 (0)