Skip to content

Commit 125408b

Browse files
author
Brian Peterson (ECG)
committed
Fix for error in adding VMSS with multiple module versions
1 parent 15b6d10 commit 125408b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ComputeAdmin/AzureStack.ComputeAdmin.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ function Add-AzureStackVMSSGalleryItem {
4444
}
4545

4646
$fileName = "microsoft.vmss.1.3.6.azpkg"
47-
$basePath = (Get-Module AzureStack.ComputeAdmin).ModuleBase
4847

49-
$blob = Set-AzureStorageBlobContent –File ($basePath + "\" + $fileName) –Blob $fileName -Container $cName -Force
48+
$blob = Set-AzureStorageBlobContent –File ($PSScriptRoot + "\" + $fileName) –Blob $fileName -Container $cName -Force
5049
$container = Get-AzureStorageContainer -Name $cName -ErrorAction SilentlyContinue
5150

5251
$uri = $blob.Context.BlobEndPoint + $container.Name + "/" + $blob.Name

0 commit comments

Comments
 (0)