Skip to content

Commit 7762ab0

Browse files
committed
Revert Token change
1 parent a3c484d commit 7762ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Syndication/AzureStack.MarketplaceSyndication.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function Sync-AzSOfflineMarketplaceItem{
5757
$registration = $registrations[0]
5858

5959
# Retrieve the access token
60-
$tokens = [Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache]::DefaultShared.ReadItems()
60+
$tokens = [Microsoft.Azure.Commands.Common.Authentication.AzureSession]::Instance.TokenCache.ReadItems()
6161
$token = $tokens |Where Resource -EQ $azureEnvironment.ActiveDirectoryServiceEndpointResourceId |Where DisplayableId -EQ $azureAccount.Context.Account.Id |Sort ExpiresOn |Select -Last 1
6262

6363

0 commit comments

Comments
 (0)