Skip to content

Commit b6652de

Browse files
committed
Incorporate feedback
1 parent 55ce59c commit b6652de

File tree

7 files changed

+17
-31
lines changed

7 files changed

+17
-31
lines changed

articles/azure-resource-manager/bicep/diagnostics/bcp007.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ This error occurs when the declaration type isn't recognized.
1616

1717
## Solution
1818

19-
Use the correct declaration type. For more information, see [Bicel file](../file.md).
19+
Use the correct declaration type. For more information, see [Bicep file](../file.md).
2020

2121
## Examples
2222

23-
The following example raises the error because *parameter* is not a correct declaration type:
23+
The following example raises the error because *parameter* isn't a correct declaration type:
2424

2525
```bicep
2626
parameter name string

articles/azure-resource-manager/bicep/diagnostics/bcp057.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.date: 08/08/2024
88

99
# Bicep error code - BCP057
1010

11-
This error occurs when the referenced name doesn't exist, either because of a typo or because it hasn't been declared.
11+
This error occurs when the referenced name doesn't exist, either due to a typo or because it hasn't been declared. If it's a typo, you'll encounter [BCP082](./bcp082.md) when the compiler identifies and suggests a similarly named symbol.
1212

1313
## Error description
1414

articles/azure-resource-manager/bicep/diagnostics/bcp063.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.date: 08/23/2024
88

99
# Bicep error code - BCP063
1010

11-
This error occurs when the system tries to locate a symbol, but no matching symbol is found.
11+
This error occurs when the system tries to locate a name within the context, but no matching name is found.
1212

1313
## Error description
1414

articles/azure-resource-manager/bicep/diagnostics/bcp071.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,16 @@ Provide the correct number of arguments.
2020

2121
## Examples
2222

23-
The following example raises the error because `@minLength()` expects one argument, but no argument was provided:
23+
The following example raises the error because [`split()`](../bicep-functions-string.md#split) expects two arguments, but three areguments were provided:
2424

2525
```bicep
26-
@minLength()
27-
param name string
26+
var tooManyArgs = split('a,b', ',', '?')
2827
```
2928

30-
You can fix the error by adding the missing argument:
29+
You can fix the error by removing the extra argument:
3130

3231
```bicep
33-
@minLength(3)
34-
param name string
32+
var tooManyArgs = split('a,b', ',', '?')
3533
```
3634

3735
## Next steps

articles/azure-resource-manager/bicep/diagnostics/bcp082.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.date: 08/06/2024
88

99
# Bicep error/warning code - BCP082
1010

11-
This error/warning occurs when there is likely a typo.
11+
This error or warning is similiar to [BCP057](./bcp057.md), it occurs when the referenced name doesn't exist, likely due to a typo. The compiler identifies and suggests a similarly named symbol.
1212

1313
## Error/warning description
1414

@@ -20,28 +20,16 @@ Fix the typo.
2020

2121
## Examples
2222

23-
The following example raises the error because `@expert()` looks like a typo.
23+
The following example raises the error because `substirng` looks like a typo.
2424

2525
```bicep
26-
@expert()
27-
module storage 'br/public:avm/res/storage/storage-account:0.11.1' = {
28-
name: 'myStorage'
29-
params: {
30-
name: 'store${resourceGroup().name}'
31-
}
32-
}
26+
var prefix = substirng('1234567890', 0, 11)
3327
```
3428

35-
You can fix the error by using `@export()` instead:
29+
You can fix the error by using `substring` instead:
3630

3731
```bicep
38-
@export()
39-
module storage 'br/public:avm/res/storage/storage-account:0.11.1' = {
40-
name: 'myStorage'
41-
params: {
42-
name: 'store${resourceGroup().name}'
43-
}
44-
}
32+
var prefix = substring('1234567890', 0, 11)
4533
```
4634

4735
## Next steps

articles/azure-resource-manager/bicep/diagnostics/bcp124.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.date: 08/23/2024
88

99
# Bicep error code - BCP124
1010

11-
This error occurs when you specify a decorator that doesn't match the data type.
11+
This error occurs when you specify a decorator that isn't supported by the type of the syntax being decorated.
1212

1313
## Error description
1414

articles/azure-resource-manager/bicep/diagnostics/bcp132.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.date: 08/23/2024
88

99
# Bicep error code - BCP132
1010

11-
This error occurs when you have a decorator but miss the type declaration.
11+
This error occurs when you have a decorator but there is no declaration following it.
1212

1313
## Error description
1414

@@ -20,13 +20,13 @@ Add the proper type declarations after the decorator.
2020

2121
## Examples
2222

23-
The following example raises the error because there is no declarations after the decorator.
23+
The following example raises the error because there are no declarations after the decorator.
2424

2525
```bicep
2626
@description()
2727
```
2828

29-
You can fix the error by removing the decorator or add the declaration after the decorator.
29+
You can fix the error by removing the decorator or adding the declaration after the decorator.
3030

3131
```bicep
3232
@description('Declare a existing storage account.')

0 commit comments

Comments
 (0)