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 72147c9 commit 4b1a4ddCopy full SHA for 4b1a4dd
Syndication/AzureStack.MarketplaceSyndication.psm1
@@ -38,7 +38,13 @@ function Sync-AzSOfflineMarketplaceItem{
38
$resources=Get-AzureRmResource
39
$resource=$resources.resourcename
40
$registrations=$resource|where-object {$_ -like "AzureStack*"}
41
- $registration = $registrations[0]
+ if ($registrations.count -gt 1) {
42
+ $Registration = $registrations[0]
43
+ }
44
+ else {
45
+ $Registration = $registrations
46
47
+
48
49
# Retrieve the access token
50
$tokens = [Microsoft.Azure.Commands.Common.Authentication.AzureSession]::Instance.TokenCache.ReadItems()
0 commit comments