We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c484d commit 7762ab0Copy full SHA for 7762ab0
Syndication/AzureStack.MarketplaceSyndication.psm1
@@ -57,7 +57,7 @@ function Sync-AzSOfflineMarketplaceItem{
57
$registration = $registrations[0]
58
59
# Retrieve the access token
60
- $tokens = [Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache]::DefaultShared.ReadItems()
+ $tokens = [Microsoft.Azure.Commands.Common.Authentication.AzureSession]::Instance.TokenCache.ReadItems()
61
$token = $tokens |Where Resource -EQ $azureEnvironment.ActiveDirectoryServiceEndpointResourceId |Where DisplayableId -EQ $azureAccount.Context.Account.Id |Sort ExpiresOn |Select -Last 1
62
63
0 commit comments