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
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/bicep-core-diagnostics.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,8 @@ If you need more information about a particular diagnostic code, select the **Fe
58
58
| BCP049 | Error | The array index must be of type "{LanguageConstants.String}" or "{LanguageConstants.Int}" but the provided index was of type "{wrongType}". |
59
59
| BCP050 | Error | The specified path is empty. |
60
60
| BCP051 | Error | The specified path begins with "/". Files must be referenced using relative paths. |
61
-
| <aid='BCP052' />[BCP052](./diagnostics/bcp052.md)| Error/Warning | The type <type-name> does not contain property <property-name>. |
62
-
| <aid='BCP053' />[BCP053](./diagnostics/bcp053.md)| Error/Warning | The type <type-name> does not contain property <property-name>. Available properties include <property-names>. |
61
+
| <aid='BCP052' />[BCP052](./diagnostics/bcp052.md)| Error/Warning | The type \<type-name> does not contain property \<property-name>. |
62
+
| <aid='BCP053' />[BCP053](./diagnostics/bcp053.md)| Error/Warning | The type \<type-name> does not contain property \<property-name>. Available properties include \<property-names>. |
63
63
| BCP054 | Error | The type "{type}" does not contain any properties. |
64
64
| BCP055 | Error | Cannot access properties of type "{wrongType}". An "{LanguageConstants.Object}" type is required. |
65
65
| BCP056 | Error | The reference to name "{name}" is ambiguous because it exists in namespaces {ToQuotedString(namespaces)}. The reference must be fully qualified. |
@@ -82,19 +82,19 @@ If you need more information about a particular diagnostic code, select the **Fe
82
82
| BCP074 | Error | Indexing over arrays requires an index of type "{LanguageConstants.Int}" but the provided index was of type "{wrongType}". |
83
83
| BCP075 | Error | Indexing over objects requires an index of type "{LanguageConstants.String}" but the provided index was of type "{wrongType}". |
84
84
| BCP076 | Error | Cannot index over expression of type "{wrongType}". Arrays or objects are required. |
85
-
| <aid='BCP077' />[BCP077](./diagnostics/bcp077.md)| Error/Warning | The property <property-name> on type <type-name> is write-only. Write-only properties cannot be accessed. |
86
-
| BCP078| Error/Warning | The property "{propertyName}" requires a value of type "{expectedType}", but none was supplied. |
85
+
| <aid='BCP077' />[BCP077](./diagnostics/bcp077.md)| Error/Warning | The property \<property-name> on type \<type-name> is write-only. Write-only properties cannot be accessed. |
86
+
|<aid='BCP078' />[BCP078](./diagnostics/bcp078.md)| Error/Warning | The property \<property-name> requires a value of type \<type-name>, but none was supplied. |
87
87
| BCP079 | Error | This expression is referencing its own declaration, which is not allowed. |
88
88
| BCP080 | Error | The expression is involved in a cycle ("{string.Join("\" -> \"", cycle)}"). |
89
89
| BCP081 | Warning | Resource type "{resourceTypeReference.FormatName()}" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed. |
90
90
| BCP082 | Error | The name "{name}" does not exist in the current context. Did you mean "{suggestedName}"? |
91
-
| BCP083| Error/Warning | The type "{type}" does not contain property "{badProperty}". Did you mean "{suggestedProperty}"? |
91
+
|<aid='BCP083' />[BCP083](./diagnostics/bcp083.md)| Error/Warning | The type \<type-definition> does not contain property \<property-name>. Did you mean \<property-name>? |
92
92
| BCP084 | Error | The symbolic name "{name}" is reserved. Please use a different symbolic name. Reserved namespaces are {ToQuotedString(namespaces.OrderBy(ns => ns))}. |
93
93
| BCP085 | Error | The specified file path contains one ore more invalid path characters. The following are not permitted: {ToQuotedString(forbiddenChars.OrderBy(x => x).Select(x => x.ToString()))}. |
94
94
| BCP086 | Error | The specified file path ends with an invalid character. The following are not permitted: {ToQuotedString(forbiddenPathTerminatorChars.OrderBy(x => x).Select(x => x.ToString()))}. |
95
95
| BCP087 | Error | Array and object literals are not allowed here. |
96
-
| BCP088| Error/Warning | The property "{property}" expected a value of type "{expectedType}" but the provided value is of type "{actualStringLiteral}". Did you mean "{suggestedStringLiteral}"? |
97
-
| BCP089| Error/Warning | The property "{property}" is not allowed on objects of type "{type}". Did you mean "{suggestedProperty}"? |
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
+
|<aid='BCP089' />[BCP089](./diagnostics/bcp089.md)| Error/Warning | The property \<property-name> is not allowed on objects of type \<resource-type>. Did you mean \<property-name>? |
98
98
| BCP090 | Error | This module declaration is missing a file path reference. |
description: 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>?
4
+
ms.topic: reference
5
+
ms.custom: devx-track-bicep
6
+
ms.date: 08/06/2024
7
+
---
8
+
9
+
# Bicep error/warning code - BCP088
10
+
11
+
This error/warning occurs when a value of a property seems to be a typo.
12
+
13
+
## Error/warning description
14
+
15
+
`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>?`
16
+
17
+
## Examples
18
+
19
+
The following example raises the error because _name_ value _ad_ looks like a typo.
0 commit comments