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 a5cb84c commit 55dd98fCopy full SHA for 55dd98f
Syndication/AzureStack.MarketplaceSyndication.psm1
@@ -37,6 +37,14 @@ function Sync-AzSOfflineMarketplaceItem {
37
38
$resources = Get-AzureRmResource
39
$resource = $resources.resourcename
40
+ # workaround for a breaking change from moving from profile version 2017-03-09-profile to 2018-03-01-hybrid
41
+ # the output model of Get-AzureRmResource has changed between these versions
42
+ # in future this code path can be changed to simply with (Get-AzureRMResource -Name "AzureStack*").Name
43
+ if($resource -eq $null)
44
+ {
45
+ $resource = $resources.Name
46
+ }
47
+
48
$registrations = $resource|where-object {$_ -like "AzureStack*"}
49
if ($registrations.count -gt 1) {
50
$Registration = $registrations[0]
0 commit comments