Skip to content

Commit 9ebeaa5

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into rolyon-aadroles-service-requests
2 parents 0304a09 + c4c08eb commit 9ebeaa5

File tree

6 files changed

+109
-1
lines changed

6 files changed

+109
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Linter rule - max outputs
3+
description: Linter rule - max outputs.
4+
ms.topic: conceptual
5+
ms.date: 02/03/2022
6+
---
7+
8+
# Linter rule - max outputs
9+
10+
This rule checks that the number of outputs does not exceed the [ARM template limits](../templates/best-practices.md#template-limits).
11+
12+
## Linter rule code
13+
14+
Use the following value in the [Bicep configuration file](bicep-config-linter.md) to customize rule settings:
15+
16+
`max-outputs`
17+
18+
## Solution
19+
20+
Reduce the number of outputs in your template.
21+
22+
## Next steps
23+
24+
For more information about the linter, see [Use Bicep linter](./linter.md).
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Linter rule - max parameters
3+
description: Linter rule - max parameters.
4+
ms.topic: conceptual
5+
ms.date: 02/03/2022
6+
---
7+
8+
# Linter rule - max parameters
9+
10+
This rule checks that the number of parameters does not exceed the [ARM template limits](../templates/best-practices.md#template-limits).
11+
12+
## Linter rule code
13+
14+
Use the following value in the [Bicep configuration file](bicep-config-linter.md) to customize rule settings:
15+
16+
`max-params`
17+
18+
## Solution
19+
20+
Reduce the number of parameters in your template.
21+
22+
## Next steps
23+
24+
For more information about the linter, see [Use Bicep linter](./linter.md).
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Linter rule - max resources
3+
description: Linter rule - max resources.
4+
ms.topic: conceptual
5+
ms.date: 02/03/2022
6+
---
7+
8+
# Linter rule - max resources
9+
10+
This rule checks that the number of resources does not exceed the [ARM template limits](../templates/best-practices.md#template-limits).
11+
12+
## Linter rule code
13+
14+
Use the following value in the [Bicep configuration file](bicep-config-linter.md) to customize rule settings:
15+
16+
`max-resources`
17+
18+
## Solution
19+
20+
Reduce the number of outputs in your template.
21+
22+
## Next steps
23+
24+
For more information about the linter, see [Use Bicep linter](./linter.md).
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Linter rule - max variables
3+
description: Linter rule - max variables.
4+
ms.topic: conceptual
5+
ms.date: 02/03/2022
6+
---
7+
8+
# Linter rule - max variables
9+
10+
This rule checks that the number of variables does not exceed the [ARM template limits](../templates/best-practices.md#template-limits).
11+
12+
## Linter rule code
13+
14+
Use the following value in the [Bicep configuration file](bicep-config-linter.md) to customize rule settings:
15+
16+
`max-variables`
17+
18+
## Solution
19+
20+
Reduce the number of variables in your template.
21+
22+
## Next steps
23+
24+
For more information about the linter, see [Use Bicep linter](./linter.md).

articles/azure-resource-manager/bicep/linter.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ The linter is integrated into the Bicep CLI and the Bicep extension for Visual S
1818
The default set of linter rules is minimal and taken from [arm-ttk test cases](../templates/template-test-cases.md). The extension and Bicep CLI check the following rules, which are set to the warning level.
1919

2020
- [adminusername-should-not-be-literal](./linter-rule-admin-username-should-not-be-literal.md)
21+
- [max-outputs](./linter-rule-max-outputs.md)
22+
- [max-params](./linter-rule-max-parameters.md)
23+
- [max-resources](./linter-rule-max-resources.md)
24+
- [max-variables](./linter-rule-max-variables.md)
2125
- [no-hardcoded-env-urls](./linter-rule-no-hardcoded-environment-urls.md)
2226
- [no-unnecessary-dependson](./linter-rule-no-unnecessary-dependson.md)
2327
- [no-unused-params](./linter-rule-no-unused-parameters.md)

articles/azure-resource-manager/bicep/toc.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@
172172
items:
173173
- name: Admin user name not literal
174174
href: linter-rule-admin-username-should-not-be-literal.md
175+
- name: Max outputs
176+
href: linter-rule-max-outputs.md
177+
- name: Max parameters
178+
href: linter-rule-max-parameters.md
179+
- name: Max resources
180+
href: linter-rule-max-resources.md
181+
- name: Max variables
182+
href: linter-rule-max-variables.md
175183
- name: No hardcoded environment URLs
176184
href: linter-rule-no-hardcoded-environment-urls.md
177185
- name: No unnecessary dependsOn entries
@@ -228,4 +236,4 @@
228236
- name: Azure PowerShell
229237
href: /powershell/module/az.resources/
230238
- name: Azure CLI
231-
href: /cli/azure/resource
239+
href: /cli/azure/resource

0 commit comments

Comments
 (0)