Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token expires during longer Pulumi programs #217

Closed
ekrengel opened this issue Apr 26, 2019 · 6 comments
Closed

Token expires during longer Pulumi programs #217

ekrengel opened this issue Apr 26, 2019 · 6 comments
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed

Comments

@ekrengel
Copy link

@metral and I were both trying to provision an AKS cluster which took a significant amount of time (~20-40mins). While pulumi up was running, our Authorization tokens expired resulting in this error:

error: Error building AzureRM Client: Error populating Client ID from the Azure CLI: No Authorization Tokens were found - please re-authenticate using `az login`.

This seems to be related to this TF error.

@stack72
Copy link
Contributor

stack72 commented Jun 11, 2019

Linking this issue... hashicorp/terraform-provider-azurerm#2602

@stack72
Copy link
Contributor

stack72 commented Jun 11, 2019

@mikhailshilkov
Copy link
Member

mikhailshilkov commented Jun 14, 2019

While the upstream issue is open for half-a-year, what's the workaround to apply in Pulumi programs?

Today, I got the failure while creating an instance of Azure API Management. The next run of pulumi up suggests creating a new one. Should I adopt the created-but-reported-as-failed resource somehow?

@praneetloke
Copy link

It looks like this may be fixed with the provider version 1.20. I see this note in the docs:

Prior to version 1.20 the AzureRM Provider used a different method of authorizing via the Azure CLI where credentials reset after an hour - as such we'd recommend upgrading to version 1.20 or later of the AzureRM Provider.

@stack72
Copy link
Contributor

stack72 commented Jul 21, 2019

In the latest Terraform AzureRM provider that is due for release, the following is included in it

hashicorp/terraform-provider-azurerm#3850

I don't believe they are going to support anything other than Service Principal for the foreseeable future

@mikhailshilkov mikhailshilkov added kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed labels Aug 1, 2023
@mikhailshilkov mikhailshilkov self-assigned this Aug 1, 2023
@mikhailshilkov
Copy link
Member

I think we've fixed this issue since 2019. I'll close it as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

4 participants