| title | BCP052 |
|---|---|
| description | The type <type-name> does not contain property <property-name>. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic occurs when you reference a property that isn't defined in the data type or the user-defined data type.
The type <type-name> does not contain property <property-name>.
Warning / Error
The following example raises the diagnostic object doesn't contain a property called bar:
type foo = object.barYou can fix the diagnostic by removing the property:
type foo = objectFor more information about Bicep diagnostics, see Bicep core diagnostics.