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

Advice on readiness of credentials #187

Open
shaneseaton opened this issue Apr 8, 2024 · 0 comments
Open

Advice on readiness of credentials #187

shaneseaton opened this issue Apr 8, 2024 · 0 comments

Comments

@shaneseaton
Copy link

Hi,

When the credentials are created. It takes a while for the credentials to be usable in Azure, something to do with their eventual consistency model.

I was wondering if you provide any advice here on the best way to check when the credential are ready for use?

I have in the past just used a while loop to call the API I need and if I get auth errors keep looping for up to 2 mins before giving up. I can live with this, but wondering if there is a better way.

Also wondering if there is a generic API endpoint I could use in a function like "wait_til_ready()" that calls that API in loop like above and then we know when the creds are ready for use.... or is this not possible because creds might be ready for say listing resources, but not ready in AAD for accessing group members (etc).

Thoughts would be appreciated.

Thanks,
Shane.

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

No branches or pull requests

1 participant