Skip to content

Commit a3c484d

Browse files
committed
Token change for 1.2.11
1 parent c944d5e commit a3c484d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.Azure.Commands.Common.Authentication.AzureSession]::Instance.TokenCache.ReadItems()
60+
$tokens = [Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache]::DefaultShared.ReadItems()
6161
$token = $tokens |Where Resource -EQ $azureEnvironment.ActiveDirectoryServiceEndpointResourceId |Where DisplayableId -EQ $azureAccount.Context.Account.Id |Sort ExpiresOn |Select -Last 1
6262

6363

Syndication/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Import-Module .\AzureStack.MarketplaceSyndication.psm1
2525

2626
## Launch the Tool
2727
```powershell
28-
Sync-AzSOfflineMarketplaceItems -destination c:\donwloadfolder
28+
Sync-AzSOfflineMarketplaceItem -destination c:\donwloadfolder
2929
```
3030

3131
## Optional Parameters

0 commit comments

Comments
 (0)