I have had my service connection converted to workload identity and now I’m getting these authorization errors:
I added in the use_oidc = true option as per the documentation:
– https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_oidc
I’ve added the use_oidc = true option into the provider "azurerm" section. I’ve also tried adding it into the backend as per the documentation but none of the configurations have been successfull for me. Has anybody cracked this problem yet? Any help greatly appreciated 🙂
PS, I’m using the TerraformTaskV4@4 task
2
Answers
I created a Microsoft support ticket, they were able to confirm that this is not supported but could not comment on the Terraform issues as this is a 3rd party tool.
I also reached out to Databricks and they were able to confirm that this is not supported and to create a feature request.
To authenticate with a service principal, you need to provide the required parameters
client_id
,client_secret
,subscription_id
, andtenant_id
in the backend block.Output:
If you are using any pipeline, make sure to set the service principal details in environment by following the Stack Link by
quadroid
Reference: Stack Link1
Configuring the Service Principal in Terraform