Open HansjoergW opened 2 months ago
Most probably it's because of the Go SDK upgrade that included this: https://github.com/databricks/databricks-sdk-go/pull/910
That change interestingly enough doesn't touch the Azure MSI authentication in the Go SDK, only the Azure CLI authentication. What I suspect is happening is that the provider is actually authenticating via the Azure CLI, which is itself authenticated via MSI. Now, the SDK is specifying the tenant ID when trying to invoke the CLI, but when the CLI is authenticated with managed identity, that is not allowed.
Additionally, I think it is a bug that the Go SDK is trying to use CLI auth in this case in the first place.
I think we need to make two changes:
Hi
After updating from Databricks TF Provider from 1.49.1 to 1.50 we receive the error "ERROR: Tenant shouldn't be specified for managed identity account".
The configuration of the provider didn't change.
We have a TF module that creates a Workspace. After that, the provider is initialized with the URL of the created workspace.
After that, we pass that provider to another module which then takes care of the "detail configuration" of the workspace.
After updating to 1.50, we received the following error, after "apply" (plan did work):
There were NO other changes other than updating the Terraform Provider. (We have an automated renovate process that ensures this was the only change in the merge request.)
NOTE: This happens on the automated build system, which of course has several environment variables concerning Azure set, like ARM_USE_MSI, ARM_TENANT_ID.
Expected Behavior
It should work as it did with 1.49.1
Actual Behavior
Provider initialization fails.
Steps to Reproduce
Change Provider version from 1.49.1 to 1.50
Terraform and provider versions
Databricks Terraform Provider version 1.50
Is it a regression?
Other merge requests/branches, that use 1.49.1 are still working.