File tree Expand file tree Collapse file tree 3 files changed +60
-2
lines changed
articles/azure-resource-manager/bicep/diagnostics Expand file tree Collapse file tree 3 files changed +60
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : BCP052
3
+ description : Error/warning - The type <type-name> does not contain property <property-name>.
4
+ ms.topic : reference
5
+ ms.custom : devx-track-bicep
6
+ ms.date : 08/06/2024
7
+ ---
8
+
9
+ # Bicep error/warning code - BCP052
10
+
11
+ This error/warning occurs when you reference a property that isn't defined in the [ data type] ( ../data-types.md ) .
12
+
13
+ ## Error/warning description
14
+
15
+ ` The type <type-name> does not contain property <property-name>. `
16
+
17
+ ## Examples
18
+
19
+ The following example raises the error _ object_ doesn't contain a property called _ bar_ :
20
+
21
+ ``` bicep
22
+ type missingProperty = object.bar
23
+ ```
24
+
25
+ ## Next steps
26
+
27
+ For more information about Bicep error and warning codes, see [ Bicep warnings and errors] ( ../bicep-core-diagnostics.md ) .
Original file line number Diff line number Diff line change 1
1
---
2
2
title : BCP053
3
- description : Error/warning - The type <resource- type> does not contain property <property-name>. Available properties include <property-names>.
3
+ description : Error/warning - The type <type-name > does not contain property <property-name>. Available properties include <property-names>.
4
4
ms.topic : reference
5
5
ms.custom : devx-track-bicep
6
6
ms.date : 07/15/2024
@@ -12,7 +12,7 @@ This error/warning occurs when you reference a property that isn't defined in th
12
12
13
13
## Error/warning description
14
14
15
- ` The type <resource- type> does not contain property <property-name>. Available properties include <property-names>. `
15
+ ` The type <type-name > does not contain property <property-name>. Available properties include <property-names>. `
16
16
17
17
## Solution
18
18
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : BCP077
3
+ description : Error/warning - The property <property-name> on type <type-name> is write-only. Write-only properties cannot be accessed.
4
+ ms.topic : reference
5
+ ms.custom : devx-track-bicep
6
+ ms.date : 08/06/2024
7
+ ---
8
+
9
+ # Bicep error/warning code - BCP077
10
+
11
+ This error/warning occurs when you reference a property that is write-only.
12
+
13
+ ## Error/warning description
14
+
15
+ ` The property <property-name> on type <type-name> is write-only. Write-only properties cannot be accessed. `
16
+
17
+ ## Examples
18
+
19
+ The following example raises the warning because ` customHeaders ` is write-only.
20
+
21
+ ``` bicep
22
+ resource webhook 'Microsoft.ContainerRegistry/registries/webhooks@2023-07-01' existing = {
23
+ name: 'registry/webhook'
24
+ }
25
+
26
+ output customerHeaders object = webhook.properties.customHeaders
27
+ ```
28
+
29
+ ## Next steps
30
+
31
+ For more information about Bicep error and warning codes, see [ Bicep warnings and errors] ( ../bicep-core-diagnostics.md ) .
You can’t perform that action at this time.
0 commit comments