Skip to content

Commit 75a832c

Browse files
committed
Add new Bicep error codes
1 parent 4a6b122 commit 75a832c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep warnings and error codes
33
description: Understand Bicep warnings and error codes.
44
ms.topic: conceptual
55
ms.custom: devx-track-azurecli, devx-track-bicep, devx-track-arm-template
6-
ms.date: 03/25/2025
6+
ms.date: 05/20/2025
77
---
88

99
# Bicep core diagnostics
@@ -276,7 +276,7 @@ If you need more information about a particular diagnostic code, select the **Fe
276276
| <a id='BCP285' />BCP285 | Error | The type expression couldn't be reduced to a literal value. |
277277
| <a id='BCP286' />BCP286 | Error | This union member is invalid because it can't be assigned to the '{keystoneType}' type. |
278278
| <a id='BCP287' />BCP287 | Error | '{symbolName}' refers to a value but is being used as a type here. |
279-
| <a id='BCP288' />[BCP288](./diagnostics/bcp288.md) | Error | \<name> refers to a type but is being used as a value here. |
279+
| <a id='BCP288' />[BCP288](./diagnostics/bcp288.md) | Error | \<name> refers to a type but is being used as a value here. |
280280
| <a id='BCP289' />BCP289 | Error | The type definition isn't valid. |
281281
| <a id='BCP290' />[BCP290](./diagnostics/bcp290.md) | Error | Expected a parameter or type declaration after the decorator. |
282282
| <a id='BCP291' />BCP291 | Error | Expected a parameter or output declaration after the decorator. |
@@ -384,6 +384,17 @@ If you need more information about a particular diagnostic code, select the **Fe
384384
| <a id='BCP405' />BCP405 | Error | More than one "{LanguageConstants.ExtendsKeyword}" declaration are present. |
385385
| <a id='BCP406' />BCP406 | Error | The "{LanguageConstants.ExtendsKeyword}" keyword isn't supported. |
386386
| <a id='BCP407' />BCP407 | Error | Built-in extension "microsoftGraph" is retired. Use dynamic types instead. See https://aka.ms/graphBicepDynamicTypes |
387+
| <a id='BCP408' />BCP408 | Error | The `nameof` function can only be used with an expression which has a name. |
388+
| <a id='BCP409' />BCP409 | Error | The `resource<>` parameterized type has been deprecated. Please specify whether you want this type to correspond to the resource input or output. |
389+
| <a id='BCP410' />BCP410 | Error | Division by zero is not supported. |
390+
| <a id='BCP411' />BCP411 | Error | The type `{type}` cannot be used in a type assignment because it does not fit within one of ARM's primitive type categories (string, int, bool, array, object). |
391+
| <a id='BCP412' />BCP412 | Error | The variable type is not valid. Please specify one of the following types: `{validTypes}`. |
392+
| <a id='BCP414' />BCP414 | Error | The `^` indexing operator cannot be used on base expressions of type `{baseType}`. |
393+
| <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}/`. |
395+
| <a id='BCP417' />BCP417 | Error | The spread operator `{ellipsis}` cannot be used inside objects with property for-expressions. |
396+
| <a id='BCP418' />BCP418 | Error | Extensions cannot be referenced here. Extensions can only be referenced by module extension configurations. |
397+
| <a id='BCP419' />BCP419 | Error | Namespace name `{name}` cannot be used as an extension name.|
387398

388399
## Next steps
389400

0 commit comments

Comments
 (0)