Skip to content

Commit 8fb6ad9

Browse files
committed
update
1 parent 2f3be04 commit 8fb6ad9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you need more information about a particular diagnostic code, select the **Fe
1313
| Code | Level | Description |
1414
|------------|-------|-------------|
1515
| <a id='BCP001' />BCP001 | Error | The following token isn't recognized: `{token}`. |
16-
| <a id='BCP002' />BCP002 | Error | The multi-line comment at this location isn't terminated. Terminate it with the */ character sequence. |
16+
| <a id='BCP002' />BCP002 | Error | The multi-line comment at this location isn't terminated. Terminate it with the `*/` character sequence. |
1717
| <a id='BCP003' />BCP003 | Error | The string at this location isn't terminated. Terminate the string with a single quote character. |
1818
| <a id='BCP004' />BCP004 | Error | The string at this location isn't terminated due to an unexpected new line character. |
1919
| <a id='BCP005' />BCP005 | Error | The string at this location isn't terminated. Complete the escape sequence and terminate the string with a single unescaped quote character. |
@@ -51,7 +51,7 @@ If you need more information about a particular diagnostic code, select the **Fe
5151
| <a id='BCP041' />BCP041 | Error | Values of type `{valueType}` can't be assigned to a variable. |
5252
| <a id='BCP043' />BCP043 | Error | This isn't a valid expression. |
5353
| <a id='BCP044' />BCP044 | Error | Can't apply operator `{operatorName}` to operand of type `{type}`. |
54-
| <a id='BCP045' />BCP045 | Error | Can't apply operator `{operatorName}` to operands of type `{type1}` and `{type2}`.{(additionalInfo is null? string.Empty : " " + additionalInfo)} |
54+
| <a id='BCP045' />BCP045 | Error | Can't apply operator `{operatorName}` to operands of type `{type1}` and `{type2}`.|
5555
| <a id='BCP046' />BCP046 | Error | Expected a value of type `{type}`. |
5656
| <a id='BCP047' />BCP047 | Error | String interpolation is unsupported for specifying the resource type. |
5757
| <a id='BCP048' />[BCP048](./diagnostics/bcp048.md) | Error | Can't resolve function overload.|
@@ -83,7 +83,7 @@ If you need more information about a particular diagnostic code, select the **Fe
8383
| <a id='BCP075' />BCP075 | Error | Indexing over objects requires an index of type `{LanguageConstants.String}`, but the provided index was of type `{wrongType}`. |
8484
| <a id='BCP076' />BCP076 | Error | Can't index over expression of type `{wrongType}`. Arrays or objects are required. |
8585
| <a id='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-
| <a id='BCP078' />[BCP078](./diagnostics/bcp078.md) | Error/Warning | The property `<property-name> requires a value of type `<type-name>, but none was supplied. |
86+
| <a id='BCP078' />[BCP078](./diagnostics/bcp078.md) | Error/Warning | The property `<property-name>` requires a value of type `<type-name>`, but none was supplied. |
8787
| <a id='BCP079' />BCP079 | Error | This expression is referencing its own declaration, which isn't allowed. |
8888
| <a id='BCP080' />BCP080 | Error | The expression is involved in a cycle (`{string.Join("\" -> \"", cycle)}`). |
8989
| <a id='BCP081' />BCP081 | Warning | Resource type `{resourceTypeReference.FormatName()}` doesn't have types available. Bicep is unable to validate resource properties prior to deployment, but this won't block the resource from being deployed. |
@@ -118,7 +118,7 @@ If you need more information about a particular diagnostic code, select the **Fe
118118
| <a id='BCP110' />BCP110 | Error | The type `{type}` doesn't contain function `{name}`. Did you mean `{suggestedName}`? |
119119
| <a id='BCP111' />BCP111 | Error | The specified file path contains invalid control code characters. |
120120
| <a id='BCP112' />BCP112 | Error | The `{LanguageConstants.TargetScopeKeyword}` can't be declared multiple times in one file. |
121-
| <a id='BCP113' />BCP113 | Warning | Unsupported scope for module deployment in a `{LanguageConstants.TargetScopeTypeTenant}` target scope. Omit this property to inherit the current scope, or specify a valid scope. Permissible scopes include tenant: tenant(), named management group: managementGroup(`<name>), named subscription: subscription(`<subId>), or named resource group in a named subscription: resourceGroup(`<subId>`, `<name>`). |
121+
| <a id='BCP113' />BCP113 | Warning | Unsupported scope for module deployment in a `{LanguageConstants.TargetScopeTypeTenant}` target scope. Omit this property to inherit the current scope, or specify a valid scope. Permissible scopes include tenant: tenant(), named management group: managementGroup(`<name>`), named subscription: subscription(`<subId>`), or named resource group in a named subscription: resourceGroup(`<subId>`, `<name>`). |
122122
| <a id='BCP114' />BCP114 | Warning | Unsupported scope for module deployment in a `{LanguageConstants.TargetScopeTypeManagementGroup}` target scope. Omit this property to inherit the current scope, or specify a valid scope. Permissible scopes include current management group: managementGroup(), named management group: managementGroup(`<name>`), named subscription: subscription(`<subId>`), tenant: tenant(), or named resource group in a named subscription: resourceGroup(`<subId>`, `<name>`). |
123123
| <a id='BCP115' />BCP115 | Warning | Unsupported scope for module deployment in a `{LanguageConstants.TargetScopeTypeSubscription}` target scope. Omit this property to inherit the current scope, or specify a valid scope. Permissible scopes include current subscription: subscription(), named subscription: subscription(`<subId>`), named resource group in same subscription: resourceGroup(`<name>`), named resource group in different subscription: resourceGroup(`<subId>`, `<name>`), or tenant: tenant(). |
124124
| <a id='BCP116' />BCP116 | Warning | Unsupported scope for module deployment in a `{LanguageConstants.TargetScopeTypeResourceGroup}` target scope. Omit this property to inherit the current scope, or specify a valid scope. Permissible scopes include current resource group: resourceGroup(), named resource group in same subscription: resourceGroup(`<name>`), named resource group in a different subscription: resourceGroup(`<subId>`, `<name>`), current subscription: subscription(), named subscription: subscription(`<subId>`) or tenant: tenant(). |
@@ -144,7 +144,7 @@ If you need more information about a particular diagnostic code, select the **Fe
144144
| <a id='BCP137' />BCP137 | Error | Loop expected an expression of type `{LanguageConstants.Array}`, but the provided value is of type `{actualType}`. |
145145
| <a id='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. |
146146
| <a id='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-
| <a id='BCP140' />BCP140 | Error | The multi-line string at this location isn't terminated. Terminate it with "'''. |
147+
| <a id='BCP140' />BCP140 | Error | The multi-line string at this location isn't terminated. Terminate it with `'''`. |
148148
| <a id='BCP141' />BCP141 | Error | The expression can't be used as a decorator as it isn't callable. |
149149
| <a id='BCP142' />BCP142 | Error | Property value for-expressions can't be nested. |
150150
| <a id='BCP143' />BCP143 | Error | For-expressions can't be used with properties whose names are also expressions. |
@@ -177,8 +177,8 @@ If you need more information about a particular diagnostic code, select the **Fe
177177
| <a id='BCP173' />BCP173 | Error | The property `{property}` can't be used in an existing resource declaration. |
178178
| <a id='BCP174' />BCP174 | Warning | Type validation isn't available for resource types declared containing a `/providers/` segment. Instead use the `scope` property. |
179179
| <a id='BCP176' />BCP176 | Error | Values of the `any` type aren't allowed here. |
180-
| <a id='BCP177' />BCP177 | Error | This expression is being used in the if-condition expression, which requires a value that can be calculated at the start of the deployment.{variableDependencyChainClause}{accessiblePropertiesClause} |
181-
| <a id='BCP178' />BCP178 | Error | This expression is being used in the for-expression, which requires a value that can be calculated at the start of the deployment.{variableDependencyChainClause}{accessiblePropertiesClause} |
180+
| <a id='BCP177' />BCP177 | Error | This expression is being used in the if-condition expression, which requires a value that can be calculated at the start of the deployment.`{variableDependencyChainClause}{accessiblePropertiesClause}`|
181+
| <a id='BCP178' />BCP178 | Error | This expression is being used in the for-expression, which requires a value that can be calculated at the start of the deployment.`{variableDependencyChainClause}{accessiblePropertiesClause}` |
182182
| <a id='BCP179' />BCP179 | Warning | Unique resource or deployment name is required when looping. The loop item variable `{itemVariableName}` or the index variable `{indexVariableName}` must be referenced in at least one of the value expressions of the following properties in the loop body: `{ToQuotedString(expectedVariantProperties)}` |
183183
| <a id='BCP180' />BCP180 | Error | Function `<function-name>` isn't valid at this location. It can only be used when directly assigning to a module parameter with a secure decorator. |
184184
| <a id='BCP181' />BCP181 | Error | This expression is being used in an argument of the function `<function-name>`, which requires a value that can be calculated at the start of the deployment.{variableDependencyChainClause}{accessiblePropertiesClause} |
@@ -193,7 +193,7 @@ If you need more information about a particular diagnostic code, select the **Fe
193193
| <a id='BCP190' />BCP190 | Error | The artifact with reference `{artifactRef}` hasn't been restored. |
194194
| <a id='BCP191' />BCP191 | Error | Unable to restore the artifact with reference `{artifactRef}`. |
195195
| <a id='BCP192' />[BCP192](./diagnostics/bcp192.md) | Error | Unable to restore the artifact with reference `<reference>`: `<error-message>`. |
196-
| <a id='BCP193' />BCP193 | Error | `{BuildInvalidOciArtifactReferenceClause(aliasName, badRef)}` Specify a reference in the format of "{ArtifactReferenceSchemes.Oci}:\<artifact-uri>:\<tag>", or "{ArtifactReferenceSchemes.Oci}\<module-alias>:\<module-name-or-path>:\<tag>". |
196+
| <a id='BCP193' />BCP193 | Error | `{BuildInvalidOciArtifactReferenceClause(aliasName, badRef)}` Specify a reference in the format of `{ArtifactReferenceSchemes.Oci}:\<artifact-uri>:\<tag>`, or `{ArtifactReferenceSchemes.Oci}\<module-alias>:\<module-name-or-path>:\<tag>`. |
197197
| <a id='BCP194' />BCP194 | Error | `{BuildInvalidTemplateSpecReferenceClause(aliasName, badRef)}` Specify a reference in the format of `{ArtifactReferenceSchemes.TemplateSpecs}:<subscription-ID><resource-group-name><template-spec-name>:<version>`, or `{ArtifactReferenceSchemes.TemplateSpecs}<module-alias>:<template-spec-name>:<version>`. |
198198
| <a id='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 `-`. |
199199
| <a id='BCP196' />BCP196 | Error | The module tag or digest is missing. |
@@ -258,7 +258,7 @@ If you need more information about a particular diagnostic code, select the **Fe
258258
| <a id='BCP261' />BCP261 | Error | A using declaration must be present in this parameters file. |
259259
| <a id='BCP262' />BCP262 | Error | More than one using declaration is present. |
260260
| <a id='BCP263' />BCP263 | Error | The file specified in the using declaration path doesn't exist. |
261-
| <a id='BCP264' />BCP264 | Error | Resource type `{resourceTypeName}` is declared in multiple imported namespaces ({ToQuotedStringWithCaseInsensitiveOrdering(namespaces)}), and must be fully qualified. |
261+
| <a id='BCP264' />BCP264 | Error | Resource type `{resourceTypeName}` is declared in multiple imported namespaces (`{ToQuotedStringWithCaseInsensitiveOrdering(namespaces)}`), and must be fully qualified. |
262262
| <a id='BCP265' />BCP265 | Error | The name `{name}` isn't a function. Did you mean `{knownFunctionNamespace}.{knownFunctionName}`? |
263263
| <a id='BCP266' />[BCP266](./diagnostics/bcp266.md) | Error | Expected a metadata identifier at this location. |
264264
| <a id='BCP267' />BCP267 | Error | Expected a metadata declaration after the decorator. |
@@ -391,7 +391,7 @@ If you need more information about a particular diagnostic code, select the **Fe
391391
| <a id='BCP412' />BCP412 | Error | The variable type is not valid. Please specify one of the following types: `{ToQuotedString(validTypes)}`. |
392392
| <a id='BCP414' />BCP414 | Error | The `^` indexing operator cannot be used on base expressions of type `{baseType}`. |
393393
| <a id='BCP415' />BCP415 | Error | The `^` indexing operator cannot be used with index expressions of type `{indexType}`. |
394-
| <a id='BCP416' />BCP416 | Error | The supplied string does not match the expected pattern of `/{expectedPattern}/`. |
394+
| <a id='BCP416' />BCP416 | Error | The supplied string does not match the expected pattern of `{expectedPattern}`. |
395395
| <a id='BCP417' />BCP417 | Error | The spread operator `{ellipsis}` cannot be used inside objects with property for-expressions. |
396396
| <a id='BCP418' />BCP418 | Error | Extensions cannot be referenced here. Extensions can only be referenced by module extension configurations. |
397397
| <a id='BCP419' />BCP419 | Error | Namespace name `{name}` cannot be used as an extension name.|

0 commit comments

Comments
 (0)