diff --git a/Syndication/AzureStack.MarketplaceSyndication.psm1 b/Syndication/AzureStack.MarketplaceSyndication.psm1 index ee23430..38fd893 100644 --- a/Syndication/AzureStack.MarketplaceSyndication.psm1 +++ b/Syndication/AzureStack.MarketplaceSyndication.psm1 @@ -395,7 +395,7 @@ function Download-Product { If ($checktool -eq $true){ DownloadMarketplaceProduct -Source $zipsource -Destination $zipdestination -ProductName "$zipName.zip" -PremiumDownload -MaxRetry 2 "$productFolder\$zipName.zip"|out-file "$productFolder\$azpkgName.txt" -Append - $productDetailsProperties['sourceBlob'].uri = "$productFolder\$zipName.zip" + $productDetailsProperties['sourceBlob'].uri = "$zipName.zip" } else { Write-Verbose "Please install Azure Storage Tools AzCopy first,canceling" -verbose return @@ -403,7 +403,7 @@ function Download-Product { } else { DownloadMarketplaceProduct -Source $zipsource -Destination $zipdestination -ProductName "$zipName.zip" -MaxRetry 2 "$productFolder\$zipName.zip"|out-file "$productFolder\$azpkgName.txt" -Append - $productDetailsProperties['sourceBlob'].uri = "$productFolder\$zipName.zip" + $productDetailsProperties['sourceBlob'].uri = "$zipName.zip" } } } @@ -797,7 +797,7 @@ function Resolve-ToLocalURI { # check vm extension zip if ($json.productDetailsProperties.sourceBlob) { - $vmExtensionZip = $json.productDetailsProperties.sourceBlob.uri + $vmExtensionZip = "$productFolder\" + $json.productDetailsProperties.sourceBlob.uri $vmExtensionURI = Upload-ToStorage -filePath $vmExtensionZip -productid $productid -resourceGroup $resourceGroup $json.productDetailsProperties.sourceBlob.uri = $vmExtensionURI } diff --git a/Syndication/readme.md b/Syndication/readme.md index b01ea27..1eb5405 100644 --- a/Syndication/readme.md +++ b/Syndication/readme.md @@ -66,6 +66,7 @@ $credential = Get-Credential -Message "Enter the azure stack operator credential Import-AzSOfflineMarketplaceItem -origin “marketplace content folder" -armendpoint "Environment Arm Endpoint" -AzsCredential $credential ``` +Option -Origin needs to be the top level folder contains all the downloaded products. In the example above, Origin should be "D:\downloadfolder". Option -AzsCredential is optional, it is used to renew access token in case token expires. ## Downloaded Content @@ -75,7 +76,7 @@ Files (VHD, ZIP and AZPKG) associated with a gallery items are stored in the des ## Working with disconnected Azure Stack -Additional resources on how to work with disconnected Azure Stack +Additional resources on how to work with disconnected Azure Stack. You can also use the following method to import VM and VM extension. ### Importing the VHD For detailed steps to use the Portal see: