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

Support for force refreshing client authentication #15894

Open
magodo opened this issue Mar 20, 2022 · 1 comment
Open

Support for force refreshing client authentication #15894

magodo opened this issue Mar 20, 2022 · 1 comment

Comments

@magodo
Copy link
Collaborator

magodo commented Mar 20, 2022

In the official page of the Azure Management Group, it says:

Azure Resource Manager user tokens and management group cache lasts for 30 minutes before they are forced to refresh. After doing any action like moving a management group or subscription, it might take up to 30 minutes to show. To see the updates sooner you need to update your token by refreshing the browser, signing in and out, or requesting a new token.

This means after creating the mgmt group, we should do a token refresh so that we can proceed to using it (e.g. assigning policy, listing inherited policy definitions, .etc). This means we need a mechanism to force refreshing the client authentications in the provider. Otherwise, users have to either wait for 30m, or rerun terraform apply after the failure.

Reference

#12478

@laughtonsm
Copy link

@magodo I came up against this, but with subscriptions. Same behaviour as only the cached JSON is used. Would be great to get a resolution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants