Add guest port to create new ps session.
This commit is contained in:
Ramakrishnan 2014-04-24 07:09:02 +05:30
Родитель 87a57056c7
Коммит e1324a4609
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -2,7 +2,6 @@
# Copyright (c) Microsoft Open Technologies, Inc.
# All Rights Reserved. Licensed under the Apache 2.0 License.
#--------------------------------------------------------------------------
module VagrantPlugins
module WinAzure
module Communicator

Просмотреть файл

@ -2,10 +2,12 @@
# Copyright (c) Microsoft Open Technologies, Inc.
# All Rights Reserved. Licensed under the Apache 2.0 License.
#--------------------------------------------------------------------------
param (
[string]$guest_ip = $(throw "-guest_ip is required."),
[string]$username = $(throw "-guest_username is required."),
[string]$password = $(throw "-guest_password is required.")
[string]$password = $(throw "-guest_password is required."),
[string]$guest_port = $(throw "-guest_port is required")
)
# Include the following modules
@ -14,7 +16,7 @@ $presentDir = Split-Path -parent $PSCommandPath
. ([System.IO.Path]::Combine($presentDir, "utils\create_session.ps1"))
try {
$response = Create-Remote-Session $guest_ip $username $password
$response = Create-Remote-Session $guest_ip $guest_port $username $password
if (!$response["session"] -and $response["error"]) {
Write-Host $response["error"]
return