You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you need more information about a particular diagnostic code, select the **Feedback** button in the upperright corner of the page and specify the code.
11
+
If you need more information about a particular diagnostic code, select the **Feedback** button in the upper-right corner of the page and specify the code.
12
12
13
13
| Code | Level | Description |
14
14
|------------|-------|-_-----------|
@@ -36,16 +36,16 @@ If you need more information about a particular diagnostic code, select the **Fe
36
36
| <aid='BCP023' />BCP023 | Error | Expected a variable or function name at this location. |
37
37
| <aid='BCP024' />BCP024 | Error | The identifier exceeds the limit of {LanguageConstants.MaxIdentifierLength}. Reduce the length of the identifier. |
38
38
| <aid='BCP025' />BCP025 | Error | The property "{property}" is declared multiple times in this object. Remove or rename the duplicate properties. |
39
-
| <aid='BCP026' />BCP026 | Error | The output expects a value of type "{expectedType}" but the provided value is of type "{actualType}". |
39
+
| <aid='BCP026' />BCP026 | Error | The output expects a value of type "{expectedType}", but the provided value is of type "{actualType}". |
40
40
| <aid='BCP028' />BCP028 | Error | Identifier "{identifier}" is declared multiple times. Remove or rename the duplicates. |
41
41
| <aid='BCP029' />BCP029 | Error | The resource type isn't valid. Specify a valid resource type of format "\<types>@\<apiVersion>". |
42
42
| <aid='BCP030' />BCP030 | Error | The output type isn't valid. Specify one of the following types: {ToQuotedString(validTypes)}. |
43
43
| <aid='BCP031' />BCP031 | Error | The parameter type isn't valid. Specify one of the following types: {ToQuotedString(validTypes)}. |
44
44
| <aid='BCP032' />BCP032 | Error | The value must be a compile-time constant. |
45
-
| <aid='BCP033' />[BCP033](./diagnostics/bcp033.md)| Error/Warning | Expected a value of type \<data-type> but the provided value is of type \<data-type>. |
45
+
| <aid='BCP033' />[BCP033](./diagnostics/bcp033.md)| Error/Warning | Expected a value of type \<data-type>, but the provided value is of type \<data-type>. |
46
46
| <aid='BCP034' />BCP034 | Error/Warning | The enclosing array expected an item of type "{expectedType}", but the provided item was of type "{actualType}". |
47
47
| <aid='BCP035' />[BCP035](./diagnostics/bcp035.md)| Error/Warning | The specified \<data-type> declaration is missing the following required properties: \<property-name>. |
48
-
| <aid='BCP036' />[BCP036](./diagnostics/bcp036.md)| Error/Warning | The property \<property-name> expected a value of type \<data-type> but the provided value is of type \<data-type>. |
48
+
| <aid='BCP036' />[BCP036](./diagnostics/bcp036.md)| Error/Warning | The property \<property-name> expected a value of type \<data-type>, but the provided value is of type \<data-type>. |
49
49
| <aid='BCP037' />[BCP037](./diagnostics/bcp037.md)| Error/Warning | The property \<property-name> isn't allowed on objects of type \<type-definition>. |
50
50
| <aid='BCP040' />[BCP040](./diagnostics/bcp040.md)| Error/Warning | String interpolation isn't supported for keys on objects of type \<type-definition>. |
51
51
| <aid='BCP041' />BCP041 | Error | Values of type "{valueType}" can't be assigned to a variable. |
@@ -55,7 +55,7 @@ If you need more information about a particular diagnostic code, select the **Fe
55
55
| <aid='BCP046' />BCP046 | Error | Expected a value of type "{type}". |
56
56
| <aid='BCP047' />BCP047 | Error | String interpolation is unsupported for specifying the resource type. |
57
57
| <aid='BCP048' />[BCP048](./diagnostics/bcp048.md)| Error | Can't resolve function overload.|
58
-
| <aid='BCP049' />BCP049 | Error | The array index must be of type "{LanguageConstants.String}" or "{LanguageConstants.Int}" but the provided index was of type "{wrongType}". |
58
+
| <aid='BCP049' />BCP049 | Error | The array index must be of type "{LanguageConstants.String}" or "{LanguageConstants.Int}", but the provided index was of type "{wrongType}". |
59
59
| <aid='BCP050' />BCP050 | Error | The specified path is empty. |
60
60
| <aid='BCP051' />BCP051 | Error | The specified path begins with "/". Files must be referenced using relative paths. |
61
61
| <aid='BCP052' />[BCP052](./diagnostics/bcp052.md)| Error/Warning | The type \<type-name> doesn't contain property \<property-name>. |
@@ -79,8 +79,8 @@ If you need more information about a particular diagnostic code, select the **Fe
| <aid='BCP072' />[BCP072](./diagnostics/bcp072.md)| Error | This symbol can't be referenced here. Only other parameters can be referenced in parameter default values. |
81
81
| <aid='BCP073' />[BCP073](./diagnostics/bcp073.md)| Error/Warning | The property \<property-name> is read-only. Expressions can't be assigned to read-only properties. |
82
-
| <aid='BCP074' />BCP074 | Error | Indexing over arrays requires an index of type "{LanguageConstants.Int}" but the provided index was of type "{wrongType}". |
83
-
| <aid='BCP075' />BCP075 | Error | Indexing over objects requires an index of type "{LanguageConstants.String}" but the provided index was of type "{wrongType}". |
82
+
| <aid='BCP074' />BCP074 | Error | Indexing over arrays requires an index of type "{LanguageConstants.Int}", but the provided index was of type "{wrongType}". |
83
+
| <aid='BCP075' />BCP075 | Error | Indexing over objects requires an index of type "{LanguageConstants.String}", but the provided index was of type "{wrongType}". |
84
84
| <aid='BCP076' />BCP076 | Error | Can't index over expression of type "{wrongType}". Arrays or objects are required. |
85
85
| <aid='BCP077' />[BCP077](./diagnostics/bcp077.md)| Error/Warning | The property \<property-name> on type \<type-name> is write-only. Write-only properties can't be accessed. |
86
86
| <aid='BCP078' />[BCP078](./diagnostics/bcp078.md)| Error/Warning | The property \<property-name> requires a value of type \<type-name>, but none was supplied. |
@@ -93,7 +93,7 @@ If you need more information about a particular diagnostic code, select the **Fe
93
93
| <aid='BCP085' />BCP085 | Error | The specified file path contains one or more invalid path characters. The following aren't permitted: {ToQuotedString(forbiddenChars.OrderBy(x => x).Select(x => x.ToString()))}. |
94
94
| <aid='BCP086' />BCP086 | Error | The specified file path ends with an invalid character. The following aren't permitted: {ToQuotedString(forbiddenPathTerminatorChars.OrderBy(x => x).Select(x => x.ToString()))}. |
| <aid='BCP088' />[BCP088](./diagnostics/bcp088.md)| Error/Warning | The property \<property-name> expected a value of type \<type-name> but the provided value is of type \<type-name>. Did you mean \<type-name>? |
96
+
| <aid='BCP088' />[BCP088](./diagnostics/bcp088.md)| Error/Warning | The property \<property-name> expected a value of type \<type-name>, but the provided value is of type \<type-name>. Did you mean \<type-name>? |
97
97
| <aid='BCP089' />[BCP089](./diagnostics/bcp089.md)| Error/Warning | The property \<property-name> isn't allowed on objects of type \<resource-type>. Did you mean \<property-name>? |
98
98
| <aid='BCP090' />BCP090 | Error | This module declaration is missing a file path reference. |
@@ -141,7 +141,7 @@ If you need more information about a particular diagnostic code, select the **Fe
141
141
| <aid='BCP134' />BCP134 | Error | Scope \<scope-name> isn't valid for this module. Permitted scopes: \<scope-name>. |
142
142
| <aid='BCP135' />[BCP135](./diagnostics/bcp135.md)| Error | Scope \<scope-name> isn't valid for this resource type. Permitted scopes: \<scope-name>. |
143
143
| <aid='BCP136' />BCP136 | Error | Expected a loop item variable identifier at this location. |
144
-
| <aid='BCP137' />BCP137 | Error | Loop expected an expression of type "{LanguageConstants.Array}" but the provided value is of type "{actualType}". |
144
+
| <aid='BCP137' />BCP137 | Error | Loop expected an expression of type "{LanguageConstants.Array}", but the provided value is of type "{actualType}". |
145
145
| <aid='BCP138' />BCP138 | Error | For-expressions aren't supported in this context. For-expressions may be used as values of resource, module, variable, and output declarations, or values of resource and module properties. |
146
146
| <aid='BCP083' />[BCP139](./diagnostics/bcp139.md)| Error | A resource's scope must match the scope of the Bicep file for it to be deployable. You must use modules to deploy resources to a different scope. |
147
147
| <aid='BCP140' />BCP140 | Error | The multi-line string at this location isn't terminated. Terminate it with "'''. |
@@ -157,7 +157,7 @@ If you need more information about a particular diagnostic code, select the **Fe
157
157
| <aid='BCP151' />BCP151 | Error | Expected an output declaration after the decorator. |
158
158
| <aid='BCP152' />[BCP152](./diagnostics/bcp152.md)| Error | Function \<function-name> can't be used as a decorator. |
159
159
| <aid='BCP153' />[BCP153](./diagnostics/bcp153.md)| Error | Expected a resource or module declaration after the decorator. |
160
-
| <aid='BCP154' />BCP154 | Error | Expected a batch size of at least {limit} but the specified value was "{value}". |
160
+
| <aid='BCP154' />BCP154 | Error | Expected a batch size of at least {limit}, but the specified value was "{value}". |
161
161
| <aid='BCP155' />BCP155 | Error | The decorator \<decorator-name> can only be attached to resource or module collections. |
162
162
| <aid='BCP156' />BCP156 | Error | The resource type segment "{typeSegment}" is invalid. Nested resources must specify a single type segment, and optionally can specify an API version using the format "\<type>@\<apiVersion>". |
163
163
| <aid='BCP157' />BCP157 | Error | The resource type can't be determined due to an error in the containing resource. |
@@ -198,7 +198,7 @@ If you need more information about a particular diagnostic code, select the **Fe
198
198
| <aid='BCP195' />BCP195 | Error | {BuildInvalidOciArtifactReferenceClause(aliasName, badRef)} The artifact path segment "{badSegment}" isn't valid. Each artifact name path segment must be a lowercase alphanumeric string optionally separated by a ".", "_", or \"-\"." |
199
199
| <aid='BCP196' />BCP196 | Error | The module tag or digest is missing. |
200
200
| <aid='BCP197' />BCP197 | Error | The tag "{badTag}" exceeds the maximum length of {maxLength} characters. |
201
-
| <aid='BCP198' />BCP198 | Error | The tag "{badTag}" isn't valid. Valid characters are alphanumeric, ".", "_", or "-" but the tag can't begin with ".", "_", or "-". |
201
+
| <aid='BCP198' />BCP198 | Error | The tag "{badTag}" isn't valid. Valid characters are alphanumeric, ".", "_", or "-", but the tag can't begin with ".", "_", or "-". |
202
202
| <aid='BCP199' />BCP199 | Error | Module path "{badRepository}" exceeds the maximum length of {maxLength} characters. |
203
203
| <aid='BCP200' />BCP200 | Error | The registry "{badRegistry}" exceeds the maximum length of {maxLength} characters. |
204
204
| <aid='BCP201' />[BCP201](./diagnostics/bcp201.md)| Error | Expected an extension specification string. This should either be a relative path, or a valid OCI artifact specification. |
@@ -254,7 +254,7 @@ If you need more information about a particular diagnostic code, select the **Fe
254
254
| <aid='BCP257' />BCP257 | Error | Expected a Bicep file path string. This should be a relative path to another Bicep file, e.g. 'myModule.bicep' or '../parent/myModule.bicep' |
255
255
| <aid='BCP258' />BCP258 | Warning | The following parameters are declared in the Bicep file but are missing an assignment in the params file: {ToQuotedString(identifiers)}. |
256
256
| <aid='BCP259' />BCP259 | Error | The parameter "{identifier}" is assigned in the params file without being declared in the Bicep file. |
257
-
| <aid='BCP260' />BCP260 | Error | The parameter "{identifier}" expects a value of type "{expectedType}" but the provided value is of type "{actualType}". |
257
+
| <aid='BCP260' />BCP260 | Error | The parameter "{identifier}" expects a value of type "{expectedType}", but the provided value is of type "{actualType}". |
258
258
| <aid='BCP261' />BCP261 | Error | A using declaration must be present in this parameters file. |
259
259
| <aid='BCP262' />BCP262 | Error | More than one using declaration is present. |
260
260
| <aid='BCP263' />BCP263 | Error | The file specified in the using declaration path doesn't exist. |
@@ -305,7 +305,7 @@ If you need more information about a particular diagnostic code, select the **Fe
305
305
| <aid='BCP318' />BCP318 | Warning | The value of type "{possiblyNullType}" may be null at the start of the deployment, which would cause this access expression (and the overall deployment with it) to fail. If you don't know whether the value will be null and the template would handle a null value for the overall expression, use a `.?` (safe dereference) operator to short-circuit the access expression if the base expression's value is null: {accessExpression.AsSafeAccess().ToString()}. If you know the value won't be null, use a non-null assertion operator to inform the compiler that the value won't be null: {SyntaxFactory.AsNonNullable(expression).ToString()}. |
306
306
| <aid='BCP319' />BCP319 | Error | The type at "{errorSource}" couldn't be resolved by the ARM JSON template engine. Original error message: "{message}" |
307
307
| <aid='BCP320' />BCP320 | Error | The properties of module output resources can't be accessed directly. To use the properties of this resource, pass it as a resource-typed parameter to another module and access the parameter's properties therein. |
308
-
| <aid='BCP321' />BCP321 | Warning | Expected a value of type "{expectedType}" but the provided value is of type "{actualType}". If you know the value won't be null, use a non-null assertion operator to inform the compiler that the value won't be null: {SyntaxFactory.AsNonNullable(expression).ToString()}. |
308
+
| <aid='BCP321' />BCP321 | Warning | Expected a value of type "{expectedType}", but the provided value is of type "{actualType}". If you know the value won't be null, use a non-null assertion operator to inform the compiler that the value won't be null: {SyntaxFactory.AsNonNullable(expression).ToString()}. |
309
309
| <aid='BCP322' />BCP322 | Error | The `.?` (safe dereference) operator may not be used on instance function invocations. |
310
310
| <aid='BCP323' />BCP323 | Error | The `[?]` (safe dereference) operator may not be used on resource or module collections. |
311
311
| <aid='BCP325' />BCP325 | Error | Expected a type identifier at this location. |
@@ -386,4 +386,4 @@ If you need more information about a particular diagnostic code, select the **Fe
386
386
387
387
## Next steps
388
388
389
-
To learn about Bicep, see [Bicep overview](./overview.md).
389
+
See the [What is Bicep?](./overview.md) overview to learn more about Bicep.
0 commit comments