balajij8
Esteemed Contributor

Hi, 

The configuration is valid and the CLI version supports the lifecycle field. However, the error is most likely coming from outdated Databricks Python packages in your virtual environment at /home/animesh/datazone/.venv/. CLI uses the packages from the venv to parse and validate the bundle. Those packages are from an older version that doesn't recognize lifecycle as a valid field for volumes and hence the Unexpected field 'lifecycle' for class Volume error.

You can activate your virtual environment and upgrade the databricks-sdk & all other packages in the environment. You can upgrade to python 3.13.2 if feasible for better management. lifecycle.prevent_destroy field will be recognized and your bundle will validate and deploy successfully after its upgraded.