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

Remove dependency on the TokenCache for accessing the Graph API #23

Merged
merged 5 commits into from
Nov 13, 2020

Conversation

JamesDawson
Copy link
Contributor

Versions of the Az.Accounts module >1.9.5 no longer populate AzContext's TokenCache property, which we relied on when performing Graph API operations. (ref: Azure/azure-powershell#13337)

This change alters the way we test for graph API access and uses the azure-cli az rest command to handle authenticating and calling the Graph API.

A future Az PowerShell release may extend the Invoke-AzRestMethod cmdlet to support more endpoints than just AzureRM, which should allow us to switch back to a pure PowerShell solution.

@JamesDawson JamesDawson merged commit a746560 into master Nov 13, 2020
@JamesDawson JamesDawson deleted the feature/az-tokencache-issue branch November 13, 2020 09:48
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

Successfully merging this pull request may close these issues.

2 participants