Hey everyone. I’m new to Terraform and evaluating it for my needs. So far so good, other than one glaring issue: some error messages are completely unactionable. This may or may not be an actual Terraform issue; it might be an Azure (
azurerm) provider issue,
databricks provider issue, or issue with Azure itself. Here’s the error message when using
Could not launch cluster due to cloud provider failures. azure_error_code: OperationNotAllowed, azure_error_message: Operation could not be completed as it results in exceeding approved Total Regio… Please see https://docs.databricks.com/dev-tools/api/latest/clusters.html#clusterclusterstate for more details
Here’s the scenario. I’m using Azure and trying to set up a Databricks workspace and cluster. I’m using the official Databricks provider to configure the cluster. The actual error is that I’m exceeding the 4 vCPU limit per-region that Azure free-tier accounts are limited to. To figure this out, I had to log in to the Databricks workspace UI, navigate to the cluster, and look at the log. In there, I could see the entire message.
To me, this is something that should be shown at the
terraform apply stage. I tried turning on trace logging, but the trace log is also truncated.
I’m not entirely sure where the issue lies, but before I go down the route of creating a GitHub issue, I figured I’d ask here to see if I’m doing anything wrong.
Thanks in advance!