How to use az login with a federated service principal

Jaimin Joshi 50 Reputation points
2023-09-25T20:11:11.5166667+00:00

I want to deploy resources in Azure through a workspace in Terraform Cloud.

I am using Terraform Cloud's dynamic provider credentials feature for authenticating to Azure, as described in this article. It involves creating a service principal with federated credentials and hence no secrets.

Its working fine and I am able to deploy resources in Azure.

However, I have a local-exec resource that uses az login

az login --service-principal -u 
Community Center | Not monitored
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.