Skip to content

Commit 544ef50

Browse files
committed
updates1
1 parent 8c27881 commit 544ef50

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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: 09/27/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
@@ -71,7 +71,7 @@ resource webApplication 'Microsoft.Web/sites@2023-12-01' = {
7171

7272
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="The screenshot of No unnecessary dependsOn linter rule with Quick Fix.":::
7575

7676
## Next steps
7777

Loading

0 commit comments

Comments
 (0)