Terraform-provider-azurerm: Terraform v0.12.18

Created on 27 Dec 2019  ·  4Comments  ·  Source: terraform-providers/terraform-provider-azurerm

After updating to Terraform v0.12.18 I am getting the below error when I do Terraform PLAN, I login to Azure CLI using service principle. Before updating it was working fine. Any help would be appreciated.

Error: Error building account: Error getting authenticated object ID: Error pars
ing json result from the Azure CLI: Error waiting for the Azure CLI: exit status
1

on line 0:
(source code not available)

authentication question

Most helpful comment

Hi,
I am facing the same issue. I tried user account & service principal. Could you guide me. Version i am using is - v0.12.18

All 4 comments

hi @rajgsdei

Thanks for opening this issue.

The Azure Provider supports authenticating either directly with a Service Principal, using MSI or using a User Account with the Azure CLI. Unfortunately the Azure CLI behaves differently when authenticating as a user account vs a service principal - since we support authenticating as a Service Principal directly, we only support authenticating using the Azure CLI with a User Account.

Instead we support authenticating directly using a Service Principal - would you be able to take a look and see if switching to that authentication method works for you?

Since authenticating using the Azure CLI and a Service Principal isn't supported I'm going to close this issue for the moment - however please let us know if switching to using the Service Principal directly doesn't work for you and we'll take another look.

Thanks!

Hi,
I am facing the same issue. I tried user account & service principal. Could you guide me. Version i am using is - v0.12.18

"we only support authenticating using the Azure CLI with a User Account."

We can verify @rakimsbi's assertion that this error this is occurring for user account logins via az cli. This issue needs reopening.
Downgrading from v1.41.0 to v1.36.1 is a valid workaround. Newer versions than v1.36.1 might work too.

I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

Was this page helpful?
0 / 5 - 0 ratings