Lab5 ‐ PS - ryanm292002/SEC480 GitHub Wiki
Licensing Vcenter
- Followed Instructions provided in lab
- Once VMware academic account created, can be requested from: https://itacademy[.]vmware.com/catalog?pagename=Software-Licenses-Repository
- Go into vsphere >> administration >> licensing, apply vSphere license to exit host and venter license to vcenter
VSCODE // Powershell module setup
Please visit "code" to see the cloning powershell script
-
Install Vscode from browser
-
Setup module directory:
-
In powershell within the newly created structure run:
New-ModuleManifest -Path ./480-Utils.psd1 -Author 'ryanm292002' -CompanyName 'RyanM' -RootModule '480-Utils.psm1' -Description 'vSphere automation module for DevOps'
- Create 480-utils module file
touch 480-utils.psm1
- in modules directory "PS /home/sa_ryan/SEC480/modules>
code $profile
", created new vs profile - in new profile run
$env:PSModulePath = $env:PSModulePath + ":/home/sa_ryan/SEC480/modules>
" - check module path was created:
$env:PSModulePath
- import-module '480-utils' -force