From 269325c344037a8f75f4b816b10d21814945eeb8 Mon Sep 17 00:00:00 2001 From: Alan Renouf Date: Wed, 1 Mar 2017 13:40:30 -0800 Subject: [PATCH] Doc Updates --- docs/docker_install.rst | 14 +------------- docs/index.rst | 6 ++++++ docs/launch.rst | 42 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 13 deletions(-) create mode 100644 docs/launch.rst diff --git a/docs/docker_install.rst b/docs/docker_install.rst index 0b7b644..772a9ff 100644 --- a/docs/docker_install.rst +++ b/docs/docker_install.rst @@ -8,16 +8,4 @@ Step 1 Run the following to download the container from the docker hub: :: - docker pull vmware/powerclicore - - -Launch the container --------------------- - -:: - - docker run --rm -it vmware/powerclicore - -More options for working with and running the container can be found here_. - -.. _here: http://www.virtuallyghetto.com/2016/10/5-different-ways-to-run-powercli-script-using-powercli-core-docker-container.html \ No newline at end of file + docker pull vmware/powerclicore \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index e26d131..9673f97 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -15,6 +15,12 @@ Index mac_install linux_install +.. toctree:: + :maxdepth: 2 + :caption: Using PowerCLI + + launch + .. toctree:: :maxdepth: 2 :caption: FAQ/Issue diff --git a/docs/launch.rst b/docs/launch.rst new file mode 100644 index 0000000..1938481 --- /dev/null +++ b/docs/launch.rst @@ -0,0 +1,42 @@ +Launching PowerCLI +================== + +Launching PowerCLI from Mac/Linux +--------------------------------- + +Step 1 - Open terminal + +Step 2 - Start Powershell in the terminal by running the following command: +:: + + powershell + +Step 3 - Import the PowerCLI Modules into your PowerShell Session: +:: + + Get-Module -ListAvailable PowerCLI* | Import-Module + +Step 3a - (Optional - Please Read) If the SSL certificates of your vCenter are not trusted by your OS, disable SSL certificate validation for PowerCLI by running: +:: + + Set-PowerCLIConfiguration -InvalidCertificateAction Ignore + +Step 4 - Connect to your vCenter Server using Connect-VIServer +:: + + PS> Connect-VIServer -Server 192.168.1.51 -User administrator@vSphere.local - + Password VMware1! + Name Port User + ---- ---- ---- + 192.168.1.51 443 VSPHERE.LOCAL\Administrator + +Launching the PowerCLI Docker container +--------------------------------------- +Open a Terminal and run: +:: + + docker run --rm -it vmware/powerclicore + +More options for working with and running the container can be found here_. + +.. _here: http://www.virtuallyghetto.com/2016/10/5-different-ways-to-run-powercli-script-using-powercli-core-docker-container.html \ No newline at end of file