Skip to content

Commit 117a1c6

Browse files
Merge pull request #224 from BrianLPeterson/user/bpet/scriptfix
Fix for error in adding VMSS with multiple module versions
2 parents 15b6d10 + 125408b commit 117a1c6

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)