Using the Azure Provider with Terraform Cloud

Hi @Immune, welcome to the forum!

Thanks for pointing out the backend bug in the documentation, I’ve reported it to the Learn team.

On the second issue, the problem looks like you haven’t set up authentication from Terraform Cloud to Azure. When you log in locally using az login, this only works for local Terraform runs. When using the remote backend, you need to use Terraform Cloud workspace variables to authenticate.

Here’s how to do that:

Sorry that this wasn’t made clear in the guides! It’s quite an involved process, but I hope this helps.

5 Likes