fix absolute local uri in json file. (#488)
This commit is contained in:
Родитель
77cf34f977
Коммит
3424404f4d
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче