Skip to content

Commit b0ce02b

Browse files
Merge pull request #287452 from LiSeda/LS-test1-linter-rule-no-unnecessary-dependson
LS_test1_linter-rule-no-unnecessary-dependson.md
2 parents d5c5bd5 + 94c7964 commit b0ce02b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

articles/azure-resource-manager/bicep/linter-rule-no-unnecessary-dependson.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Linter rule - no unnecessary dependsOn entries
33
description: Linter rule - no unnecessary dependsOn entries
44
ms.topic: reference
55
ms.custom: devx-track-bicep
6-
ms.date: 07/11/2024
6+
ms.date: 10/11/2024
77
---
88

99
# Linter rule - no unnecessary dependsOn entries
@@ -18,7 +18,7 @@ Use the following value in the [Bicep configuration file](bicep-config-linter.md
1818

1919
## Solution
2020

21-
To reduce confusion in your template, delete any dependsOn entries that aren't necessary. Bicep automatically infers most resource dependencies as long as template expressions reference other resources via symbolic names rather than strings with hard-coded IDs or names.
21+
To reduce confusion in your template, delete any dependsOn entries that aren't necessary. Bicep automatically infers most resource dependencies as long as template expressions reference other resources via symbolic names rather than strings with hard-coded IDs or names.
2222

2323
The following example fails this test because the dependsOn entry `appServicePlan` is automatically inferred by Bicep implied by the expression `appServicePlan.id` (which references resource symbolic name `appServicePlan`) in the `serverFarmId` property's value.
2424

@@ -46,7 +46,7 @@ resource webApplication 'Microsoft.Web/sites@2023-12-01' = {
4646
}
4747
```
4848

49-
You can fix it by removing the unnecessary dependsOn entry.
49+
You can fix it by removing the unnecessary dependsOn entry:
5050

5151
```bicep
5252
param location string = resourceGroup().location
@@ -69,9 +69,9 @@ resource webApplication 'Microsoft.Web/sites@2023-12-01' = {
6969
}
7070
```
7171

72-
Use **Quick Fix** to remove the unnecessary dependsOn entry.
72+
Use **Quick Fix** to remove the unnecessary dependsOn entry:
7373

74-
:::image type="content" source="./media/linter-rule-no-unnecessary-dependson/linter-rule-no-unnecessary-dependson-quick-fix.png" alt-text="The screenshot of No unnecessary dependson linter rule with quick fix.":::
74+
:::image type="content" source="./media/linter-rule-no-unnecessary-dependson/linter-rule-no-unnecessary-dependson-quick-fix.png" alt-text="A screenshot of using Quick Fix for the no-unnecessary-dependson linter rule.":::
7575

7676
## Next steps
7777

Loading

0 commit comments

Comments
 (0)