Deply databricks workspace on azure with terraform - failed state: legacy access

Hil
New Contributor III

I'm trying to deploy a workspace on azure via terraform and i'm getting the following error:

"INVALID_PARAMETER_VALUE: Given value cannot be set for workspace~<id>~default_namespace_ws~ because: cannot set default namespace to hive_metastore since legacy access is disabled"

My thought was to set the default namespace to that of the UC. However, this only possible within the workspace itself, which in my case cannot be provisioned. Have anyone dealt with this issue?

To give a bit of context:

- I've setup a UC for the region that is set to be automatically assigned to new workspaces
- When manually provisioning a workspace everything work as expected

Any insight will be helpful, thanks!