not able to find the terraform resource for databricks token policy
I am providing some token specific permissions to users in databricks. I am using code like this to configure token specific settings . I am new to terraform and thus not able to figure out what could be wrong with this code. I dont see any relevant links on google on this error as well. So any leads would be appreciated.
This is the terraform code snippet used to provision databricks. The xyz is replaced with actual values which I have removed here and it throws the error which is provided below the code snippet.
Exception: AzureTaskRetriableException: [TerraformCreate]: Failed to execute terraform. Reason: Terraform Execution Exception. Reason: Expected exit code 0, doesn't match with the execution exit code 1 for the command: [/opt/homebrew/bin/terraform, apply, -auto-approve, -no-color, -lock=false]. Error Message: --Error: cannot create permissions: tokens tokens does not exist---- with module.jterraform.databricks_permissions.token_usage,-- on .terraform/modules/jterraform/main.tf line 202, in resource "databricks_permissions" "token_usage":-- 202: resource "databricks_permissions" "token_usage" {------
Now, the strange thing is if this policy is applied on already create databricks account, this error doesnot come up and the policy is applied succesfully. So what could be missing in the case when the databricks is created for the first time.