File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments