I am looking for ways to access Azure key vault secrets with Terraform that uses some kind of service principal in Azure to fetch the vault values per workspace in Terraform cloud.
For example - Lets say if I have 2 workspaces in Terraform cloud for 2 different projects (A & B) which deploys resources in different Azure Subscriptions dedicated per project. I know , I can configure environment variables in Terraform cloud per workspace. However, instead of using environment variables, is there a way we can fetch these values from Azure vault and define that in terraform configuration files so that when code is applied then it automatically authenticates with Azure using values in Azure vault and deploy resources.
I am guessing that you could use this datasource to do it.