File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
PSModuleDevelopment/internal/buildActions Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 21
21
$paramNewPSSession = @ { }
22
22
if ($actualParameters.VMName ) { $paramNewPSSession.VMName = $actualParameters.VMName }
23
23
if ($actualParameters.ComputerName ) { $paramNewPSSession.ComputerName = $actualParameters.ComputerName }
24
+ if ($actualParameters.Port ) { $paramNewPSSession.Port = $actualParameters.Port }
24
25
if ($credential ) { $paramNewPSSession.Credential = $credential }
25
26
26
27
try { $session = New-PSSession @paramNewPSSession - ErrorAction Stop }
30
31
}
31
32
32
33
$params = @ {
33
- Name = ' new-pssession'
34
- Action = $action
34
+ Name = ' new-pssession'
35
+ Action = $action
35
36
Description = ' Establish a PSSession to a target computer and provide it as an artifact'
36
37
Parameters = @ {
37
38
ComputerName = ' The Computer to connect to'
38
- VMName = ' The virtual machine to which to connect to via the HyperV VM Bus'
39
+ Port = ' Port you want to connect too'
40
+ VMName = ' The virtual machine to which to connect to via the HyperV VM Bus'
39
41
CredentialPath = ' The path to the credentials to use for the connection. Use %ProjectRoot% to insert the folder path to where the buildfile is located'
40
42
ArtifactName = ' (mandatory) The name under which to publish the session as an artifact'
41
43
}
You can’t perform that action at this time.
0 commit comments